![]() |
#2
rjsp2019-07-29 08:48
|

struct teacher
{
char name[9],title[7];
teacher* next;
};
定义了一个变量 teacher head;
并给 head.hext=NULL;
然后我又 head.next= new teacher;
结果就显示了上面的报错 1>e:\ropes\linked_list\linked_list\linked_list.cpp(43): error C2106: “=”: 左操作数必须为左值
本人用的是vs2017,不知道这是怎么回事,请大家帮帮忙!