#include <iostream>
using namespace std ;
int main() {
int x = 1;
for (int i = 0 ; i = 0 ; i <= 5) {
x++;
}
cout << x << endl;
return 0 ;
}
2分
登录后查看选项
04
关于计算机编码中补码,下面说法错误的是()。
2分
登录后查看选项
05
下面程序执行的结果是()。
#include <iostream>
using namespace std ;
int main() {
int x = 2026;
int count = 0 ;
while (x > 0) {
count++;
x = x & (x - 1);
}
cout << count << endl;
}
#include <iostream>
using namespace std ;
int main() {
int n = 0 ;
cin >> n ;
for (int i = 0 ; i < n ; i++) {
char str [11];
cin >> str;
char max = '0 ';
for (int i = 0 ; str [i] != '\0 '; i++)
if (str [i] > max)
max = str [i];
_______________________
}
return 0 ;
}