最新回答 / 董瘦瘦
那你Person.cpp中“==”运算符重载函数里的if (this->name == person.name && this->phone == this->phone)就要换成if (this->name == person.name)注意:这里换了之后,所有用到该对象“==”运算符的地方都变了
2019-10-22
最新回答 / 被黑暗笼罩的孩子
你可以这样crt = crt->next;while (currentNode != NULL) {crt->printnode();crt = crt->next;}不然你会在开头输出一个0;因为这个课程的头节点是NULL,所以你要在while循环的前面加crt = crt->next;
2019-10-21