百度:'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
找到这个链接的解决办法就解决问题了:
代码:
#include <stdio.h>
int main() {
int a, b;
printf("Please enter two numbers:");
scanf_s("%d %d", &a, &b);
printf("You enter:%d", a + b);
return 0;
}
编辑器问题,要安全一点的函数scanf_s
https://blog.csdn.net/qq_43309823/article/details/95386759