Possible duplicate:
How to split a string in C ++?
Best way to break a string in C ++? It can be assumed that the string consists of words separated;
From our point of view, C string functions are not allowed, and Boost is also not allowed, since for security reasons open source is prohibited.
The best solution I have now is:
string str ("Denmark; Sweden; India; USA");
Above str should be stored in the vector as strings. How can we achieve this?
Thanks for the input.
c ++
venkysmarty Mar 02 2018-11-12T00: 00Z
source share