Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT input weird behavior - even after flushing
CDT input weird behavior - even after flushing [message #172405] Sun, 09 July 2006 23:18
Eclipse UserFriend
Originally posted by: danielgalassi.gmail.com

Hi Guys,

I finally started to do some programming with CDT. Fairly good but I have
a problem.
I wrote this almost 'hello world' program and (it was reported a couple of
times before), I'm asked to enter an int before the "hello" message is on
the screen.

#include <iostream.h>

int main()
{
int i;
cout << "hello\n";
cout.flush();
cin >> i;
cout << "\ni = " << i;
}

I tried with cout.flush() and a couple more... and it didn't work.
Can anybody help me? please, please!!!!
I'm running Eclipse with Ubuntu Dapper.

Thanks in advance,

Dan.
Previous Topic:Debug Problem With CDT
Next Topic:C Input/Output
Goto Forum:
  


Current Time: Mon Sep 22 03:51:30 EDT 2025

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

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

Back to the top