错误 1 error 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. d:\users\vs2013\le
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void main()
{
int num;
scanf("%d", &num);
char str[50];
sprintf(str,"for /l %%i in (1,1,%d) do @echo china",num);
system(str);
system("pause");
}
#define _CRT_SECURE_NO_WARNINGS 关闭安全检查