I\'m writing a project that we do simple calculator from command line. The users input in this format programname firstNumber operator secondNumber. Here what I
In addition to @meneldal suggestion, you can also use stringstream in C++ to convert from string to number
double value; stringstream(someString) >> value;