c++iostream

Alternative function in iostream.h for getch() of conio.h?


I'm trying to hold the screen on my output using the header file <iostream.h>, but I don't know any equivalent function to the getch() & clrscr() functions of <conio.h> in <iostream.h> or any other C++ library. Are there any such functions?


Solution

  • if you work on windows you can use system("pause"), this will give you "press any key to continue" message.