#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int A = 123456789;
cout << hex << A << endl; // base 10 -> base 16
cout << oct << A << endl; // base 10 -> base 8
system("pause");
return 0;
}
Comments