Do what the error message tells you and change the function call to
_getch()
. Converting VC++ 6.0 code may find a number of incompatible functions; you just have to change them to conform to the latest standards.
See
Compiler Warning (level 3) C4996 | Microsoft Docs[
^] for an explanation. Note that it is
not recommended to disable this warning message.