c++编译报错积累@TOC
1.“stdafx.h”: No such file or directory
这里只需将你的 ,#include “stdafx.h” 删除掉。更换为 其所包含的内容。也就是:
#include <stdio.h>
#include <tchar.h>
2.‘getch’:ThePOSIXnameforthisitemisdeprecated.Instead,usetheISOC++conformantname:_getch.Seeonlinehelpfordetails.1>.
getch()不是标准函数,在c++中建议用_getch()代替。
3.‘kbhit’: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _getch. See online help for details.
kbhit()是一个C和C++函数,用于非阻塞地响应键盘输入事件。其中文可译为“键盘敲击”(keyboard hit)。kbhit替换成_kbhit
3万+

被折叠的 条评论
为什么被折叠?



