Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. cout << "please enter something" <<endl;
  2. cin >> input;
  3.  
  4. char operator_type;
  5.  
  6. cout << "1 " <<endl;
  7.  
  8.  
  9. while(input != "q");
  10. {
  11. cout << "2 " <<endl;
  12.  
  13.  
  14. double num;
  15.  
  16. if(istringstream(input) >> num)
  17. {
  18. cout << "Reading in a number" <<endl;
  19. one.push(num);
  20. }
  21. else if(isOperator(input))
  22. {
  23. cout << "operator_Type" <<endl;
  24. }
  25.  
  26. else if(input == "0n")
  27. {
  28. return -1;
  29. }
  30.  
  31. cout << "please enter something" <<endl;
  32. cin >> input;
  33.  
  34. one.print();
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement