题目大意
这道题的意思是把前16位和后16位反转
本蒟蒻采用位运算的方法
左移的意思是向左移
右移的意思是向右移
注意!
不能又左移又右移
code代码(挖空)
#include <bits/stdc++.h>
using namespace std;
unsigned int n,m;
____ main() {
cin>>n;
m=n;
___<<=16;
___>>=16;
cout<<______;
return 0;
}本蒟蒻采用位运算的方法
左移的意思是向左移
右移的意思是向右移
不能又左移又右移
#include <bits/stdc++.h>
using namespace std;
unsigned int n,m;
____ main() {
cin>>n;
m=n;
___<<=16;
___>>=16;
cout<<______;
return 0;
}