Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 1
How to convert octal numbers to decimal in c++?
1 Réponse
+ 2
c++ will convert it automatically.
int myints = 0123; // octal number
cout << "As a decimal " << myints<< endl;
cout << oct << "As an Octal " << myints;