Hi everyone,
How do I split a string like this
"500 57 - 33 + 17 * 22 -"
into an array of strings
"500" "57" "-" "33" ..
What function can do that for me?
Hi everyone,
How do I split a string like this
"500 57 - 33 + 17 * 22 -"
into an array of strings
"500" "57" "-" "33" ..
What function can do that for me?
Yes. strtok() for example. sscanf() could also be used with some thinking about it.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
It should also be quite simple with stringstream and operator >>.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.