So you're going to write a command-line C++ interpreter? Good luck. Surely you don't intend to parse C++ code from the command line, but just a small set of operations? In that case you have to parse the text, look for the operator, then perform the operation yourself in your own code.
so there is no a direct way to do that in c++ ?? coz the problem is there might be a sin or cos or any other functions that i can not get it from the string .. the only way is to take the string as it is and little the compiler treat with it as a code (like google for drawing functions).