I am writing a small konsole game ( tic tac toe, what else ) and want to get a number from the user. Now i dont want that the user has to hit enter. I hope that is enough that too understand me.
I am writing a small konsole game ( tic tac toe, what else ) and want to get a number from the user. Now i dont want that the user has to hit enter. I hope that is enough that too understand me.
With using Microsoft's Visual C++ IDE it has a function in conio.h
That fuction will get the character without the need for the enter key. If you're using a different compiler you may have this function but in a different header file.Code:int _getche();
While you're breakin' down my back n'
I been rackin' out my brain
It don't matter how we make it
'Cause it always ends the same
You can push it for more mileage
But your flaps r' wearin' thin
And I could sleep on it 'til mornin'
But this nightmare never ends
Don't forget to call my lawyers
With ridiculous demands
An you can take the pity so far
But it's more than I can stand
'Cause this couchtrip's gettin' older
Tell me how long has it been
'Cause 5 years is forever
An you haven't grown up yet
-- You Could Be Mine - Guns N' Roses