#include <iostream>
using namespace std;
int main ()
{
//发生了隐式类型转换
//总结记录关键代码(背),能提高工作效率
char bytes= 127; //char有符号的范围:-128~127
cout << bytes+2000<< endl;
unsigned char c=255;//char无符号的范围:0~255
cout<<c+2000<<endl;
int num = 123;
cout << to_string(num)+"hello"<<endl;//int转string
return 0;
}
06-23
371
08-02
4506
11-08
731
08-13
1752
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交