I have the following intention:
Take a string such as:
string test = "2.0+2.5";
and convert this to the double 4.5. Is this possible? I also want to extend this to the complex type. I have more experience with Java but I am trying to work with C++. I attempted to use stringstream, however the double that I ended up with was only the 2. So I suppose it stops at the "+". Thanks for any help or pointers.