+ 1

How to convert octal numbers to decimal in c++?

17th Dec 2019, 11:10 PM
George Morkos
George Morkos - avatar
1 Resposta
+ 2
c++ will convert it automatically. int myints = 0123; // octal number cout << "As a decimal " << myints<< endl; cout << oct << "As an Octal " << myints;
17th Dec 2019, 11:45 PM
rodwynnejones
rodwynnejones - avatar