oct ------> octal
dec -------> decimal
hex ------> hex
control input and output formats:
int main()
{
int a = 0;
cin >>hex>>a;
cout << dec<< a;
system("pause");
return 0;
}
Enter hexadecimal to decimal output.
oct ------> octal
dec -------> decimal
hex ------> hex
control input and output formats:
int main()
{
int a = 0;
cin >>hex>>a;
cout << dec<< a;
system("pause");
return 0;
}
Enter hexadecimal to decimal output.