|
|
发表于 2020-2-5 14:33:36
|
显示全部楼层
小甲鱼老师您好,为啥我报错了?
我手打了一遍,还复制试了一下,都不行。
我用的软件是visual studio 2019.
以下是报错显示:
1>------ 已启动生成: 项目: s1e1, 配置: Debug Win32 ------
1>s1e1.c
1>D:\VS-study\c\s1e1\s1e1.c(22,1): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): message : 参见“fopen”的声明
1>D:\VS-study\c\s1e1\s1e1.c(47,1): 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>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(133): message : 参见“strcpy”的声明
1>D:\VS-study\c\s1e1\s1e1.c(48,1): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(90): message : 参见“strcat”的声明
1>D:\VS-study\c\s1e1\s1e1.c(52,1): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1774): message : 参见“sprintf”的声明
1>D:\VS-study\c\s1e1\s1e1.c(66,1): 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>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(133): message : 参见“strcpy”的声明
1>D:\VS-study\c\s1e1\s1e1.c(67,1): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(90): message : 参见“strcat”的声明
1>D:\VS-study\c\s1e1\s1e1.c(80,1): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1774): message : 参见“sprintf”的声明
1>已完成生成项目“s1e1.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
麻烦老师了 |
|