(no subject)
(no subject)
- Subject: (no subject)
- From: Tony Cate <email@hidden>
- Date: Tue, 28 Aug 2001 22:04:15 -0500
I know this belongs on the project builder list, but I don't happen
to know the address and I need a quick answer.
When trying to run a c++ app with the cin object, using the PB IDE,
output is held up until all the input has occurred. Example:
#include <iostream>
int main (int argc, const char * argv[])
{
float x;
cout << "Hello, World!";
cin >> x;
return 0;
}
The text "Hello World" will only print once I've input 'x'. If I had
6 cin's, I'd have to put then all in before the output would happen.
1 Why?
2 How do I get around it? (I'm in a c++ class and this is the IDE I'm
using - everyone else is on wintel stuff.)
--
--