I meet a problem, as shown in figure 1, the application, use VS2019 prompts warning, and unable to run, as shown in figure 2, but the use of vc + + 6.0 can run normally, as shown in figure 3, this is the scanf/scanf_s statements of pot or pan goto statements? Pan or the compiler itself? This how to solve it?
CodePudding user response:
Parameter is not enough, check what you need parameters
CodePudding user response:
Scanf_s % c will indicate the size The scanf need to add # define _CRT_SECURE_NO_WARNINGS Or turn off the SDL check in engineering properties