Re: basic i/o question
From: Leor Zolman (leor_at_bdsoft.com)
Date: 03/31/04
- Next message: Anand Hariharan: "Casting vs. operator overloading"
- Previous message: B. v Ingen Schenau: "Re: Compile Time assertions"
- In reply to: Donald Davidson: "basic i/o question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 17:21:04 GMT
On Wed, 31 Mar 2004 19:08:55 +0200, Donald Davidson <stys@planet.nl> wrote:
>Is it possible to display a timer counting down while at the same time
>waiting for user input?
>
>With things like cin the whole program more or less comes to a halt.
>
>Or is this already an os/platform related question?
'Fraid it is. There aint a whole heck of a lot that Standard C or C++ let
you do while waiting for input...except keep waiting.
You'd at the very least need a way to poll the input for the existence of
pending characters, and that /alone/ is outside the scope of the Standards.
You could get by without that by using multi-threading or a windowing
system, but those are also platform-specific extensions.
-leor
>
>Thanks, Donald.
-- Leor Zolman --- BD Software --- www.bdsoft.com On-Site Training in C/C++, Java, Perl and Unix C++ users: Download BD Software's free STL Error Message Decryptor at: www.bdsoft.com/tools/stlfilt.html
- Next message: Anand Hariharan: "Casting vs. operator overloading"
- Previous message: B. v Ingen Schenau: "Re: Compile Time assertions"
- In reply to: Donald Davidson: "basic i/o question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|