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!";
		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: Tue Oct 23 05:31:24 GMT 2018

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

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

Back to the top