In C++ you have to use "cin" and not inkey...
Google it and you will get hundrets of results about it.

Ralph