How can I access each member in a std::string variable? For example, if I have
string buff;
suppose buff conatains "10 20 A" as ASCII content. How could I then access 10, 20, and A separately?
Here is an answer for you on SO:
How do I tokenize a string in C++?
There are many ways to skin that cat...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With