Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "please enter something" <<endl;
- cin >> input;
- char operator_type;
- cout << "1 " <<endl;
- while(input != "q");
- {
- cout << "2 " <<endl;
- double num;
- if(istringstream(input) >> num)
- {
- cout << "Reading in a number" <<endl;
- one.push(num);
- }
- else if(isOperator(input))
- {
- cout << "operator_Type" <<endl;
- }
- else if(input == "0n")
- {
- return -1;
- }
- cout << "please enter something" <<endl;
- cin >> input;
- one.print();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement