#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
int x1;
int x2;
int x3;
x1=21;
x2=21;
x3=21;
cout<<oct ;
cout<<"x1:"<<x1<<endl;
cout<<hex;
cout<<"x2:"<<x2<<endl;
cout<<dec;
cout<<"x3:"<<x3<<endl;
return 0;
}
x1:25
x2:15
x3:21
Program ended with exit code: 0
c++随笔【显示数值,八进制,十六进制等】
最新推荐文章于 2024-08-07 21:15:00 发布