int main()
{
int a = 0;
int b = 0;
int c = 0;
printf("请输入三个数比较大小\n");
scanf_s("%d%d%d", &a, &b, &c);
if (b > a)
{
int tmp = a;
a = b;
b = tmp;
}
if (c > a)
{
int tmp = a;
a = c;
c = tmp;
}
if (c > b)
{
int tmp = b;
b = c;
c = tmp;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
如上代码,在运行输入时,输入完回车后,下面的打印代码无法被执行,且程序无法完成,一直闪光标,回车会进入下一行,求解(本人用的是vs2019)