for (; p != last; ) { student *p; p = head->next; head->next = head->next->next; delete
答案:1 悬赏:70 手机版
解决时间 2021-03-23 22:27
- 提问者网友:心如荒岛囚我终老
- 2021-03-23 14:30
for (; p != last; ) { student *p; p = head->next; head->next = head->next->next; delete p; }
最佳答案
- 五星知识达人网友:笑迎怀羞
- 2021-03-23 16:08
for循环中指针p被重新声明了,跟for循环判断中的p不是一个
等效
for (; p2 != last; )
{
student *p;
p = head->next;
head->next = head->next->next;
delete p;
}
不知道p2,for执不执行都不一定
等效
for (; p2 != last; )
{
student *p;
p = head->next;
head->next = head->next->next;
delete p;
}
不知道p2,for执不执行都不一定
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯