Boost logo

Boost Users :

From: Alex Vinokur (alexvn_at_[hidden])
Date: 2005-12-31 05:11:46


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net