M
Matt
Hello,
How can I do mathematical addition of strings in C++?
As in:
string one;
string two;
string three;
three = one + two;
I don't want it to say "one two" but rather take the numbers input
into one and two and add them.
If this can't be done, what variable type can I use for string/int
etc? IE.. I want to be able to have strings or numbers in this
variable.. and want to be able to add it if it has numbers in it.
~ Matt
How can I do mathematical addition of strings in C++?
As in:
string one;
string two;
string three;
three = one + two;
I don't want it to say "one two" but rather take the numbers input
into one and two and add them.
If this can't be done, what variable type can I use for string/int
etc? IE.. I want to be able to have strings or numbers in this
variable.. and want to be able to add it if it has numbers in it.
~ Matt