Advertisement
SmellyBadger

Untitled

Nov 5th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <string>
  4. using namespace std;
  5.  
  6.  
  7.  
  8. bool IsvalidNumForBase(int, int);
  9. int baseToDecimal(int, int);
  10. float someDecimals(float, float);
  11. void decimalToBase(int, int, int &, int &);
  12. int decimalOperation(int decinum1, int decinum2, char o)
  13.  
  14. int main()
  15. {
  16. int base = 0; // the base number the user will enter
  17. int num1, num2; // integers that must be less than the base
  18. bool IsvalidNum = true;
  19.  
  20. cout << "Enter the base: " << endl;
  21. cin >> base;
  22.  
  23. IsvalidNum = IsvalidNumForBase(num1, num2);
  24. if (IsvalidNumForBase == false)
  25. {
  26. return false;
  27. }
  28.  
  29. else
  30. {
  31. cout << "Enter the first number: " << endl;
  32. cout << "Enter the second number: " << endl;
  33. cout << endl;
  34.  
  35. baseToDecimal(base, num1);
  36. cout << endl;
  37.  
  38. decimalOperation (decinum1, decinum2, 'o')
  39.  
  40.  
  41. }
  42. }
  43. //params: (in, in)
  44. baseToDecimal(base, deciNum)
  45. {
  46.  
  47.  
  48. return
  49. }
  50. //params: (in, in, in/out, in/out)
  51. decimalToBase(num1, num2, base &, base &)
  52. {
  53.  
  54.  
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement