Sewcond
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 7 articles for 0.302 sec
Dan wrote: > Wolf Kirchmeir wrote: >> Mark Mathu wrote: >>> "Howard R Garner" <cascaderail@bellsouth.net> wrote in message >>> news:Yg27j.13845$Mu4.7096@bignews7.bellsouth.net... >>> >>>>>> If the 1953 edition is a revised edition it must have been >>>>>> publised under a different title. >>>>> >>>>> Thanks... so Hay's comment in the book referring to "current >>>>> maximum" is probably     

Group: rec.models.railroad · Group Profile · Search for Sewcond in rec.models.railroad
Author: Wolf Kirchmeir
Date: Dec 10, 2007 11:30

Wolf Kirchmeir wrote: Mark Mathu wrote: "Howard R Garner" <cascaderail@bellsouth.net> wrote in message news:Yg27j.13845$Mu4.7096@bignews7.bellsouth.net... If the 1953 edition is a revised edition it must have been publised under a different title. Thanks... so Hay's comment in the book referring to "current maximum" is probably based on 1953 practice
Show full article (1.26Kb) · Show article thread
In article <ukXXv7X4GHA.3396@TK2MSFTNGP05.phx.gbl>, nospam@gmail.com says... > Hello > > I have a list like below: > > std::list<int> mylist; > > I just want to extract say the second item in the list. how do I do that? > > Eg send in index > > myval = mylist[index]; You use something other than a list (vector and deque provide random access). I've said it before, but it     

Group: rec.models.railroad · Group Profile · Search for Sewcond in rec.models.railroad
Author: Dan
Date: Dec 10, 2007 08:03

Angus Comber wrote: I have a list like below: std::list<int> mylist; I just want to extract say the second item in the list. how do I do that? Eg send in index myval = mylist[index]; If you need random access to elements, then std::vector or std::deque will be more appropriate. For std::list you don't have any choice but iterating through nodes from the beginning
Show full article (0.90Kb) · Show article thread
Igor Tandetnik <itandetnik@mvps.org> wrote: > Angus Comber <nospam@gmail.com> wrote: >> I have a list like below: >> >> std::list<int> mylist; >> >> I just want to extract say the second item in the list. how do I do >> that? > > std::list<int>::iterator it; Shoud be std::list<int>::iterator it = mylist.begin() > advance(it, index); > int elem = *it; -- With best wishes,     

Group: microsoft.public.vc.stl · Group Profile · Search for Sewcond in microsoft.public.vc.stl
Author: Jerry Coffin
Date: Sep 26, 2006 10:09

Angus Comber <nospam@gmail.com> wrote: I have a list like below: std::list<int> mylist; I just want to extract say the second item in the list. how do I do that? std::list<int>::iterator it; advance(it, index); int elem = *it; If you plan to do this often, understand that list is precisely the wrong kind of container to perform random access on. Consider vector or deque
Show full article (0.89Kb) · Show article thread
    

Group: microsoft.public.vc.stl · Group Profile · Search for Sewcond in microsoft.public.vc.stl
Author: Alex Blekhman
Date: Sep 26, 2006 08:45

Show full article (0.40Kb) · Show article thread
    

Group: microsoft.public.vc.stl · Group Profile · Search for Sewcond in microsoft.public.vc.stl
Author: Igor Tandetnik
Date: Sep 26, 2006 08:45

Show full article (0.64Kb) · Show article thread
    

Group: microsoft.public.vc.stl · Group Profile · Search for Sewcond in microsoft.public.vc.stl
Author: Igor Tandetnik
Date: Sep 26, 2006 08:25

Show full article (0.67Kb) · Show article thread
    

Group: microsoft.public.vc.stl · Group Profile · Search for Sewcond in microsoft.public.vc.stl
Author: Angus Comber
Date: Sep 26, 2006 08:17

Show full article (0.19Kb)