哪位大神帮我看看到底咋错了,应该怎样改。老实说error C2059: 语法错误:“)”

2025-05-19 01:36:30
推荐回答(1个)
回答1:

#include
int main(void)
{
int a,b,t;
printf ("enter one number: \n");
scanf("%d",&b);
if (a {
t=a;
a=b;
b=t;

printf("the sorted numbers :%d",a);
return 0;
}


你的程序逻辑上就有问题

  1. 这个程序是要干什么?

  2. a,t 的值分别是多少?