This will be the last question concerning my program.. So the user inputs a string like:

this + that + anotherOne - justoneMore

where this, that etc are classes containing a name and a vector of integers. How could I create another class which will hold the result? (The result will be a class with a vector whose elements are being added or substracting).

I got the names in a string vector and the operands in a char vector as well. I made a loop, but it works like this: it add this with that, then that with another one, and then it adds the two results...

I would appreciate a code.. at least for a simpler thing, such as a + b - c, where a , b, c are integers..