|
From: Markella K. <chr...@fr...> - 2005-08-11 10:13:24
|
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "give me a number: "; int number; cin >> number;
cout << "you typed this number: " << number << endl;
//maybe you need just this
//you wait for an Enter and keep the window open
fflush(stdin); cin.get();
return 0;
}
Krisztian
>Hi,
>
>Whenever I enter the input data and hit enter, the output is not
>displayed and the run window closes immediately. i am using Dev C++
>4.9.9.2.
>
>
>
>
>
|