Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Andrew Beamer
- //Chea Cooley
- #include <iostream>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <cmath>
- using namespace std;
- inline void keep_window_open() { char ch; cin >> ch; }
- int main()
- {
- class Token{
- public:
- char kind;
- double value;
- };
- Token t1{ '+' };
- Token t2{ '-' };
- Token t3{ '*' };
- Token t4{ '/' };
- Token t5{ '(' };
- Token t6{ ')' };
- vector<Token>v = { t1, t2, t3, t4, t5, t6 };
- vector<Token>input;
- vector<Token>test = { 1, t1, 2 };
- for (int i = 0; i < test.size(); i++)
- {
- cout << test[i].kind << endl;
- }
- keep_window_open();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement