after the user input for example 3, 21 and 25Code:// this 3 are user input char szNum1; char szNum2; char szNum3;
i need to make this strings into int or double variables, so i can use them to make some math operations after.
I have tryed this because this is what they though me, but looks like with strings wont work :P
any idea of how I can make this work guys?Code:szNum1 = static_cast<double>(szNum1); szNum2 = static_cast<double>(szNum2); szNum3 = static_cast<double>(szNum3);
Thank you for your time.