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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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