iostream.h中用于conio.h的getch()的替代函数? [英] Alternative function in iostream.h for getch() of conio.h?

查看:657
本文介绍了iostream.h中用于conio.h的getch()的替代函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用头文件< iostream.h> 在我的输出上保持屏幕,但我不知道任何等效的功能, code> getch()& < iostream.h>中的 clrscr()函数< conio.h> 或任何其他C ++库。有没有这样的功能?

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?

推荐答案

如果你在windows上工作,你可以使用系统按任意键继续消息。

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

这篇关于iostream.h中用于conio.h的getch()的替代函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆