Menu

INKEY

2002-11-07
2012-09-26
  • Nobody/Anonymous

    Is there anything in c++ that works like
    Do until inkey from qbasic?
    Something that makes a computer to wait for some
    key to be pressed on a keyboard and than acording
    to a key,to do something.
    But not like:
    #include <stdlib.h>
    int main();
    {
    system ("PAUSE");
    }
    And sorry for grammar mistakes,I'm still learning english.

     
    • Nobody/Anonymous

      Check out the getchar() command, there is a good example that can get you started in the FAQ, in the question covering keeping the window open.

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.