这个是书上的源代码,本身没有问题但是一直出现错误:
1>------ 已启动生成: 项目: 实验八code2, 配置: Debug Win32 ------
1>实验八code2.cpp
1>c:\users\administrator\source\repos\实验八code2\实验八code2\实验八code2.cpp(18): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files\windows kits\10\include\10.0.16299.0\ucrt\string.h(132): note: 参见“strcpy”的声明
1>已完成生成项目“实验八code2.vcxproj”的操作 - 失败。
已采纳
为什么include<cstring>了却无法使用cstring的函数。
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答