|
struct student
{
char num[15];char name[20];float eng,math,cpro;struct student*next,*pre;
};
………………
if (t==1) para="num";else para="name";
p=pm=ph;
strcpy(min,ph->para);\\这里老是提示我“para”: 不是“student”的成员
for(i=1;i<count;i++)
if(strcmp((p+i)->para,min)<0) pm=p+i;\\这里老是提示我“para”: 不是“student”的成员
num和name都不能用变量代替吗??
还有编译器经常报错说strcpy和strcpy实参太少,可是我检查的时候明明不会少啊!这是为什么?? |
|