|
This is not possible with standard C/C++. You must use non-portable code. The code you use depends upon your operating system and platform, which is why the posting guidelines recommend including that information with your questions.
There is not a portable way because there is not a world standard way of getting input and producing output. Some people are blind, some are paralyzed, some have home-built systems, some systems have no UI per se. You get the picture.
|