【发布时间】:2013-05-14 05:06:19
【问题描述】:
编辑:原始问题已修复。
新问题:While 循环不会中断 for or 语句:
while(m->next != NULL || m->val != n)
{
cout<<"Looking for main node. Comparing"<<n<<" to "<<m->val<<endl;
m = m->next;
}
它会打印出所有的比较,包括完全相似的两个。为什么这不会破坏它?
【问题讨论】:
标签: c++ linked-list adjacency-list