How can I take characters from their place and put them into variables?
Example:
User input : 5+9+7
a=5(1st)
b=+(2nd)
...
I hope you get what I mean =P
-EDIT-
Oh yeah, my friend said something about using "ordinal"? =S
Last edited on
Well, you could just use getline() and put the input into the string, then you can just iterate through the characters to get each part.
hmm...a simple example perhaps? =D
TNX
Yes it is but I wanted to do it using str.at...