error C4996: 'kbhit': The POSIX name for this item is deprecated

编译c++程序时遇到如下问题:

“error C4996: 'kbhit': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _kbhit. See online help for details.” 

解决办法:

在头文件尾部添加

#pragma warning(disable:4996)

猜你喜欢

转载自blog.csdn.net/qq_42189368/article/details/85013153
今日推荐