I want to split a string into an array of strings and I need to split them whenever a ','
is encountered.
In Java, we can use:-
String[] splitArray = input.split(",");
Is there any such a feature in C++ or I'll have to stick with the traditional way of doing this using a loop?
The solutions provided at a similar Ques. at StackOverflow Do not work for any delimiter other than space.