Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Solving getch in C++

$
0
0

I have been writing some code to a program that I wanted, which deals with multi-menu's and sets in creating rooms customers

and deleting add and modifying on the fly. My problem persists in the function on the getch() format in C++. In which I keep getting errors. Here is some of my code too assist you in seeing my dilemma.  

c:\users\mrrose\documents\visual studio 2008\projects\hardmotel\hardmotel\hardmotel.cpp(125) : warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.

Here is the sample coding I have:

cout<<

"\n\n\t\t\tWrong choice.....!!!";

cout<<

"\n\t\t\tPress any key to continue....!!";

getch();

Any Suggestions are welcome.. Thanks to all..!!


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>