收起
当然有为空的风险了。temp是R的next,你只判断R不为空,但R->next可能是空的啊。你有temp = temp->next;如果temp为空,那么temp->next就会报错了
报告相同问题?