Public snipts »
Fotinakis's
snipts » tokenize
showing 1-1 of 1 snipts for tokenize
-
∞ Tokenize a string in C++
#include <string> #include <sstream> #include <algorithm> #include <iterator> #include <vector> using namespace std; int main() { string sentence = "All of this has happened before..."; vector<string> tokens; istringstream iss(sentence); copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter<vector<string> >(tokens)); }



PHP and MySQL Web Development