有关如下C++代码,下列说法中错误的是?
int i, tot;
i = 0, tot = 0;
while (0 <= i && i < 10) {
tot += 1;
i += 1;
}
cout << tot; 有关如下C++代码,下列说法中错误的是?
int i, tot;
i = 0, tot = 0;
while (0 <= i && i < 10) {
tot += 1;
i += 1;
}
cout << tot;