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

c++, iostream

Solution

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

Problem

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?

Original source

Related problems