cin not working
Yasir
yasir_home@bigfoot.com
Mon Apr 9 01:38:00 GMT 2001
Apologies if this is a known problem.
When I run the following code
#include <iostream>
using namespace std;
int main()
{
int i;
cin >> i;
cout << "i == " << i << endl;
}
cin doesn't wait for input - the cout code gets executed with a random value
for i.
I'm using gcc from CVS, updated a few hours ago.
When I run the same code under gcc 2.95.3 it works fine.
Is this a problem with libstdc++-v3 or could my setup be wrong?
Thanks,
Yasir
More information about the Libstdc++
mailing list