Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » No console output
No console output [message #1725308] Wed, 02 March 2016 12:07
Vittorio Ricca is currently offline Vittorio RiccaFriend
Messages: 1
Registered: March 2016
Junior Member
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: Thu Apr 25 02:01:03 GMT 2024

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

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

Back to the top