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

后端 未结 10 1055
无人共我
无人共我 2020-11-30 09:55

I\'m trying to hold the screen on my output using the header file , but I don\'t know any equivalent function to the getch() &

10条回答
  •  盖世英雄少女心
    2020-11-30 10:36

    You can use system("pause"), which produces the "press any key to continue" message. But it works in the windows environment only. I think all the "system" commands are dos commands. Correct me if I am wrong

提交回复
热议问题