error C4996 The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name

error C4996: 'strupr': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strupr. See online help for details.
error C4996: 'strupr': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strupr. See online help for details.
error C4996: 'sopen': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _sopen. See online help for details.error C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.

用VS2010好好的,在VS2015上编译就报一堆错。

在头文件尾部添加

#pragma warning(disable:4996)

报错消除

上一篇:Linux笔记(开机自动将kerne log保存到SD卡中)


下一篇:HDU 2147 kiki's game(博弈经典题)