Search
 
SCRIPT & CODE EXAMPLE
 

CPP

print octal number in c++

// modify basefield
#include <iostream>     // std::cout, std::dec, std::hex, std::oct

int main () {
  int n = 70;
  std::cout << std::dec << n << '
';
  std::cout << std::hex << n << '
';
  std::cout << std::oct << n << '
';
  return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: opencv open image c++ 
Cpp :: c++ function default argument 
Cpp :: c++ int to char* 
Cpp :: find second highest number in c++ 
Cpp :: find the missing number 
Cpp :: push local branch to another remote branch 
Cpp :: untitled goose game 
Cpp :: concatenate two vectors c++ 
Cpp :: c++ min int 
Cpp :: cin getline 
Cpp :: lua table contains 
Cpp :: cpp mutex 
Cpp :: #define online judge in cpp 
Cpp :: 2d vector in cpp 
Cpp :: c #define 
Cpp :: Convert a hexadecimal number into decimal c++ 
Cpp :: c++ hash combine 
Cpp :: length of array c++ 
Cpp :: find in unordered_map c++ 
Cpp :: how to remove first element from vector c++ 
Cpp :: c++ program to convert character to ascii 
Cpp :: difference between --a and a-- c++ 
Cpp :: stl function to reverse an array 
Cpp :: what do you mean by smallest anagram of a string 
Cpp :: cpp execute command 
Cpp :: rock paper scissor c++ 
Cpp :: one dimensiol array to two dimen c++ 
Cpp :: why use python 
Cpp :: accumulate in cpp 
Cpp :: Basic Input / Output in C++ 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =