Why this program as shown in the scanf function at runtime error? Where is my write wrong?
CodePudding user response:
To define _CRT_SECURE_NO XXX can ignore this warning,
Because of this function is not safe, have already abandoned
CodePudding user response:
Why don't see an error message, use what home
CodePudding user response:
See error message is the building of the compiler does not support the scanf need using scanf_s (vs. support),
Changing the scanf to
scanf_s (" % d ", & amp; X);
Try ~
CodePudding user response:
# define _CRT_SECURE_NO_WARNINGS
# pragma warning (4996) disable:
CodePudding user response: