hmmm char string to variable double or int
Code:
// this 3 are user input
char szNum1[];
char szNum2[];
char szNum3[];
after the user input for example 3, 21 and 25
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
Code:
szNum1 = static_cast<double>(szNum1);
szNum2 = static_cast<double>(szNum2);
szNum3 = static_cast<double>(szNum3);
any idea of how I can make this work guys?
Thank you for your time.