解决问题:
错误C4996'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
#define _CRT_SECURE_NO_WARNINGS 1
将上方代码放置在第一行(不放置在第一行不生效)
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
int a = 0;
int b = 0;
int sum = 0;
scanf("%d %d",&a ,&b);
sum = a + b;
printf("sum = %d\n", sum);
return 0;
}
解决问题:
错误C4996'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
#define _CRT_SECURE_NO_WARNINGS 1
将上方代码放置在第一行(不放置在第一行不生效)
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
int a = 0;
int b = 0;
int sum = 0;
scanf("%d %d",&a ,&b);
sum = a + b;
printf("sum = %d\n", sum);
return 0;
}