CDT input weird behavior - even after flushing [message #172405] |
Sun, 09 July 2006 23:18 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05228 seconds