{ flag++; { a[i] = 1; num--; flag = 0; } { i = 0; }
}
收起
第三个if语句是,当数组中第某个数为0时,输出它的下标,也就是i,这个i就是鲁智深的位置,然后break结束程序。
报告相同问题?