淘客熙熙

主题:【原创】野狐追鱼记 -- 肥狐

  • 共: 💬 36 🌺 61
程序有错吧老狐,把&&改成||,这样选择不会有漏

for ( Channel *pc =_first_channel;

pc->type !=’暴力’ && pc->type !=’色情’ && pc- >type !=’搞笑’ ;

pc = (pc->next==NULL)? _first_channel : pc->next )

;

watch(pc) ;

改成

for ( Channel *pc =_first_channel;

pc->type !=’暴力’ || pc->type !=’色情’ || pc- >type !=’搞笑’ ;

pc = (pc->next==NULL)? _first_channel : pc->next )

;

watch(pc) ;



有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河