类型转换
1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 char c=255;//-1 6 unsigned short b=c;//-1~65535 7 cout<<b<<endl; 8 return 0; 9 }
1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 char c=255;//-1 6 unsigned short b=c;//-1~65535 7 cout<<b<<endl; 8 return 0; 9 }