#include<stdio.h>
void main()
{
int a,b;
scanf("%d%d%d\n",&a,&b);
if(a>b)
printf("max=%d\n",a);
else
printf("max=%d\n",b);
}
调试后输入俩个数字之后就没有输出了,不知何解,,,,,编译的时候有一个警告:warning 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 ps:用的是vs2008 求解 谢谢