I'm new to C++ and I'm stuck with a question. after reading the first 45 pages of this sites tutorial, i tried to make a calculator. I'm heppy with the result, but it is a bit slow to calculate.
You have to give in your first number, enter, operation, enter, second number, enter and you get the result. Is it possible to make a programme where you just type 2*7 and it says 14?
Absolutely, it's possible. Just cin a number, one character, and another number. To shorten it to one line: cin >> int >> char >> int;
Just one character. What you have there would work just fine as far as what you wanted if it was only one character instead of a string, or if you used a function for reading into strings that could be limited in terms of the number of characters to be read.
Expanding this to undefined-at-compile-time number of arguments, however, will be a petite problem.