left operand must be l-value 这是应为你把地址赋值给一个不可更改的指针。比如 char a[100]; char *p = new char[10]; a = p; //这里出错 char * const pp = new char[1]; pp = a; //也错