To solve the error report of C++ program in VS2015 with scanf, scanf_s must be used

Solution:
In order to solve the scanf error, and you don't want to use scanf_s, add
_CRT_SECURE_NO_WARNINGS in the project->properties->preprocessor definition to
Insert picture description here
test it usefully, and the problem is solved.

Guess you like

Origin blog.csdn.net/qq_27538633/article/details/106442513