• 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
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Chris Boot <email@hidden>
  • Date: Thu, 30 Aug 2001 20:35:16 +0200

Hi,

> int main (int argc, const char * argv[])
> {
> float x;
> cout << "Hello, World!";
> cin >> x;
>
>
> return 0;
> }

Try putting a flush after the cout. The fourth line of the above example
would look like:

cout << "Hello, World!" << flush;

If that works, you'll need to put the flush in wherever you need the text to
be displayed.

HTH,

--
Chris Boot
email@hidden

An ASCII character walks into a bar. Bartender asks, "What'll you have?"
ASCII character says, "Give me a double." Bartender asks, "Having a bad
day?" ASCII character says, "Yeah, I have a parity error." Bartender says,
"Hmmm. I thought you looked a bit off."


References: 
 >Re: (no subject) (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Toolbars and Plugins and a Giant Panda
  • Next by Date: Re: Return and Enter keys in NSTextView
  • Previous by thread: Re: (cout not being flushed properly)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread