I wrote a function like split method in javascript: vector<string> split(string str, string ch) { vector<string> v; int i = 0; int s = 0; int e = str.find(ch, s); ...