这是什么原因??
错在哪里??#include<stdio.h>
#include<string.h>
void main()
{
char p1[10],p2[10],p3[10],*temp;
gets(p1);
gets(p2);
gets(p3);
if(strcmp(p1,p2)>0)
{ temp=p1;
p1=p2;
p2=temp;
}
if(strcmp(p1,p3)>0)
{temp=p1;
p1=p3;
p3=temp;
}
if(strcmp(p2,p3)>0)
{temp=p2;
p2=p3;
p3=temp;
}
printf("%s\n%s\n%s\n",p1,p2,p3);
}
E:\CC\符.c(11) : error C2106: '=' : left operand must be l-value
E:\CC\符.c(12) : error C2106: '=' : left operand must be l-value
E:\CC\符.c(16) : error C2106: '=' : left operand must be l-value
E:\CC\符.c(17) : error C2106: '=' : left operand must be l-value
E:\CC\符.c(21) : error C2106: '=' : left operand must be l-value
E:\CC\符.c(22) : error C2106: '=' : left operand must be l-value
Error executing cl.exe.
符.obj - 6 error(s), 0 warning(s)