first of all, i apologize if my english is not accurate.
Now the question,
is the following possible in C/C++:
i write it in (beginners) pseudo-code.
cout << "Enter: ";
m = getch(); // i need an input-function wich processed every keypress
clock the time of how long the key is pressed
keypress = the time of how long the key was pressed
if (keypress < 0.5 sec)
cout << "a";
if (keypress > 0.5 sec)
cout << "b";
And is it possible to give out a note for the whole time the key is pressed?
Thank you very much!