首页 > 编程知识 正文

解决CC Error getch was not declared in this scope

时间:2023-05-04 08:02:09 阅读:280500 作者:2587

编译器编译时出现报错[Error] ‘getch’ was not declared in this scope解决方法
报错的编译器有:VC++6.0/DevC++/IntelliJ IDEA 等

出现[Error] ‘getch’ was not declared in this scope的报错是因为缺少头文件
在你的头文件中加入以下代码即可

#include<conio.h>

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。