Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » No console output
No console output [message #1725308] Wed, 02 March 2016 07:07
Eclipse UserFriend
Hello all!

I'm new to Eclipse and I'm trying to run simple codes to breack the ice.

After a couple of fixes, I managed to get my Hello World welcome in the console.
Now I'm trying to figure out why the console does not show any output for the second program I'm running. The code is the following:
#include <iostream>
#include <stdio.h>
using namespace std;

int main(){
	int a;
	cout << "Enter a number :" << endl;
	cin >> a;
	if(a<=78 && a>=56){
		cout << "YOU WIN!";
	}
	else{
		cout << "YOU LOSE!";
	}
	return 0;
}


What could it be the issue?
Previous Topic:Use flex/bison in build
Next Topic:C++ code manipulation
Goto Forum:
  


Current Time: Mon Jul 14 22:24:51 EDT 2025

Powered by FUDForum. Page generated in 0.23427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top