Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 1
How to convert octal numbers to decimal in c++?
1 Antwort
+ 2
c++ will convert it automatically.
int myints = 0123; // octal number
cout << "As a decimal " << myints<< endl;
cout << oct << "As an Octal " << myints;