问题1 stdafx.h
Output:Did you forget to add '#include "stdafx.h"' to your source?
方案:vs2017生成工程后会自动加入预编译文件stdafx.h,若不希望工程中存在预编译文件,可按照图1操作。
![](https://img.haomeiwen.com/i13899437/9b61c9e93258aa72.png)
问题2 _CRT_SECURE_NO_WARNINGS
Output:error C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To ...
方案:按照图2操作。
![](https://img.haomeiwen.com/i13899437/36979719693040ba.png)
网友评论