I have a CString that I’d like to break up much the way a php explode() would do, I haven’t seen anything like this in C++. Does anybody have an easy way to split up a string into substrings given the separator character?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no direct equivalent, but the Tokenize method is similar, and can be used as the basis of function to work like PHP’s explode.