error C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getcwd. See online help for details. c:\users\12968\desktop\testapp\testapp\testapp.c

解决办法:

属性》C/C++》预处理器定义》分别输入:

  _CRT_SECURE_NO_WARNINGS

  _CRT_SECURE_NO_DEPRECATE

》保存退出即可

posted @ 2019-01-08 21:15  xianyongchao  阅读(844)  评论(0编辑  收藏  举报