Advertisement
roronoa

c++ affich hexa

Aug 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5.  
  6. using namespace std;
  7.  
  8. /**
  9.  * Auto-generated code below aims at helping you parse
  10.  * the standard input according to the problem statement.
  11.  **/
  12. int main()
  13. {
  14.     int number;
  15.     cin >> hex >> number; cin.ignore();
  16.     cout << dec << number << endl;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement