[C++] Stripping values from a string and storing them in separate variables
im trying to do some math progs, and ive hit a small, and probably easy to solve, snag.

What I want, as outlined in the title, is for the user to input a string, say "2x^2+5x-2" and to be able to do something different with each of the x-terms and the constant.

Cheers :)
[C++] Stripping values from a string and storing them in separate variables
===

im trying to do some math progs, and ive hit a small, and probably easy to solve, snag.

What I want, as outlined in the title, is for the user to input a string, say "2x^2+5x-2" and to be able to do something different with each of the x-terms and the constant.

Cheers :)