J
Joe Nova
I'm a C++ noob and I need a little help manipulating strings.
I've got a program that takes an expression in the form:
"operand1 operator operand2"
I'd like to:
1. Find the total length of the string
2. Find the position of the operator (the operator will only be a '+'
or a '*')
3. Extract operand1 and put it into a new string
4. Extract operand2 and put it into a new string
5. Strip any zeroes from the beginning of these new strings.
Any help would be greatly appreciated!
I've got a program that takes an expression in the form:
"operand1 operator operand2"
I'd like to:
1. Find the total length of the string
2. Find the position of the operator (the operator will only be a '+'
or a '*')
3. Extract operand1 and put it into a new string
4. Extract operand2 and put it into a new string
5. Strip any zeroes from the beginning of these new strings.
Any help would be greatly appreciated!