Polecam
Kod: Zaznacz cały
http://c-faq.com/osdep/cbreak.html
zacytuję 2 zdania o getch()
>i just want to whether there is a replacement for getch() in C++.
There isn't a standard equivalent for getch in either C or C++.
>my friend said getch() is C function.
No, getch is a compiler extension. You can use it in either C or C++ if your compiler supports it, but for the most part you don't need to.