• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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.)

--
--


  • Follow-Ups:
    • Re: (no subject)
      • From: Scott Tooker <email@hidden>
    • Re: (no subject)
      • From: Chris Gehlker <email@hidden>
  • Prev by Date: Sorting an NSArray containing NSDictionaries
  • Next by Date: Abstract classes and methods
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread