Re: [Boost-users] The boost Tokenizer package: split into a vectorof vectors of tokens
31 Dec
2005
31 Dec
'05
10:11 a.m.
nitin motgi wrote:
if(It != string_find_iterator()) cout << "(" << i << ", " << j << ") : " << (*It) << endl;
Modify this line to (*It) ==> (*It++) if(It != string_find_iterator()) cout << "(" << i << ", " << j << ") : " << (*It++) << endl;
string s = "ab cd \n xy z\n123";
And output would be $ ./a.exe (0, 0) : ab (0, 1) : cd (1, 0) : (1, 1) : (2, 0) : xy (2, 1) : z [snip]
How to interpret that output? * Why are there two spaces between 'cd' and 'xy'? * Why are there no spaces 'xy' and 'z'? * Why is '123' missing? -- Alex Vinokur email: alex DOT vinokur AT gmail DOT com http://mathforum.org/library/view/10978.html http://sourceforge.net/users/alexvn
6908
Age (days ago)
6908
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alex Vinokur