--- In [email protected], "Saurabh Jain" <[EMAIL PROTECTED]> wrote:
>
> > --- In [email protected], "nimak247" <nimak247@> wrote:
> > >
> > > Hello,
> > > 
> > > My program crashes at the point shown below. This message was a bit
> > > different, though. It said the failure was at xstring, line 137?
> 
> What do you mean by xstring? Your own string handling library/class?
>  
> > > I don't know what caused it. How does one debug one of these
types of
> > > messages??
> > > 
> > > vector<string> ret;
> > > iter pos = str.begin(), e = pos;
> 
> What is iter? And what is present in str?
> 
> > > 
> > > for(int x = 0; e != str.end() && x != 10; x++){           
> > >           ++e;
> > >   }
> > > 
> > > ret.push_back(string(pos, e)); /*--program fails here--*/
> > > 
> > > any help would be greatly appreciated!
> > >
> > Anyone know anything about this?? Or have perhaps not given enough
> > info :O) ?
> >
> 
> Regards,
> Saurabh
>

Sorry for not providing enough info!
xstring is not my library, it came with vis c++ express 2008. It is a
vis c++ library. 

str is a sentence tat was input, a string of words.

iter is  a typedef for string::iterator

I am very new to this, and don't know what I did to cause an error to
be thrown by a library not of my own making...

Thanks Saurabh!

Nim

Reply via email to