C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
non-blocking cin Posted by executive idio on 10 Apr 2002 at 7:42 AM
can anyone write, or tell me where i could find a function similar to cin, except it doesn't block, as in it doesn't stop execution of the program until the user hits enter. or does anyone know where i could find a function that tells me what key is being pressed, if any.
thanks in advance,
-executive idio
Report
Re: non-blocking cin Posted by whoie on 10 Apr 2002 at 8:32 AM
: can anyone write, or tell me where i could find a function similar to cin, except it doesn't block, as in it doesn't stop execution of the program until the user hits enter. or does anyone know where i could find a function that tells me what key is being pressed, if any.
: thanks in advance,
: -executive idio

The answer to this question is system dependant, and it is the same issue for C++ that it is for C. Question 19.1 of the C FAQ (second link in my sig) provides some fairly detailed information about it. It is a good place to start anyways.


HTH,
Will
--
http://www.tuxedo.org/~esr/faqs/smart-questions.html
http://www.eskimo.com/~scs/C-faq/top.html
http://www.parashift.com/c++-faq-lite/
http://www.accu.org/





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.