[cpp]
#include <iostream>
using namespace std;
int main()
{
int n=200;
cout << "n:" << n << endl << endl;
cout << hex; //轉成16進位
cout << "轉成16進位為:" << n << endl;
cout << oct; //轉成8進位
cout << "轉成8進位為:" << n << endl;
cout << dec; //轉成10進位
cout << "轉回10進位為:" << n << endl;
return 0;
}
[/cpp]