pushing any key and ....
is there any function that when u push a key then it says which key u had pushed ?
it must be done for all keys in keyboard (a...z & 1...9 & all other keys like f1,f2,... & ctrl &...)
for example when u push (a) it says (a)
or when u push f1 it says f1 and so on .
and if there is no function for doing that , can u plz help me a little to writting that program .
Check the FAQ. It should be enough to get you well on your way.
tnx for such a fast help .
I almost understand the program .
now my question is : is there any function in c++ for doing that ?
There's nothing standard to C++ for such operations, however, depending on the implementation you are using, you can use conio.h to read a key pressed or if using windows.h you can use some other stuff to do the same. Read thru the FAQ.
>is there any function in c++ for doing that ?
That function was C++, what more do you want? If you want something 100% standard and portable then forget it. The C++ standard doesn't know what a keyboard is.