Advertisement
theTANCO

Base Conversion || Convert.h

Feb 16th, 2023 (edited)
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. // main.cpp https://pastebin.com/vV3VfRGF
  2. // Convert.cpp https://pastebin.com/c6HBu4rp
  3.  
  4. #pragma once
  5. #include <iostream>
  6. #include <string>
  7. #include <cmath>
  8.  
  9. using namespace std;
  10.  
  11. class Convert {
  12. public:
  13.     Convert();
  14.     int tonumber(string input, int base);
  15.     string tobase(int input, int base);
  16.     string getBase(int base);
  17.  
  18. private:
  19.     string _base;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement