close
We can use the operator , dec , oct , and hex to decide which format we want.
for example:
int main()
{
cout << oct << 10 << endl;
cout << hex << 10 <<endl;
cout << dec << 10 << endl;
return 0;
}
全站熱搜
We can use the operator , dec , oct , and hex to decide which format we want.
for example:
int main()
{
cout << oct << 10 << endl;
cout << hex << 10 <<endl;
cout << dec << 10 << endl;
return 0;
}