error C2001: newline in constant

2025-02-28 02:56:58
推荐回答(1个)
回答1:

#include
int main()
{
float a,b,c,d;
float temp;
scanf("%f %f %f %f", &a, &b, &c, &d);//这里有修改,少了一个"
temp=a;//这里少了一个分号
if(temp temp=b;
if(temp temp=c;
if(temp temp=d;
printf("\nmax=%f",temp);
return 0;
}