943,634 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1289
  • C++ RSS
Aug 27th, 2009
-1

Re: typedef statement - easy one

Expand Post »
typedef std::list<list*> List;

Can you tell me how to enter inside the list,if I want to know number of contacts which it consists..
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
ellla is offline Offline
1 posts
since Aug 2009
Aug 28th, 2009
0

Re: typedef statement - easy one

Click to Expand / Collapse  Quote originally posted by ellla ...
typedef std::list<list*> List;

Can you tell me how to enter inside the list,if I want to know number of contacts which it consists..
What is the second list in
C++ Syntax (Toggle Plain Text)
  1. typedef std::list<list*> List;

or do you mean

C++ Syntax (Toggle Plain Text)
  1. typedef std::list<std::list*> List;
Reputation Points: 395
Solved Threads: 71
Posting Whiz
jencas is offline Offline
362 posts
since Dec 2007
Aug 28th, 2009
0

Re: Iterating through std::list

Use iterator provided by list.
Last edited by firstPerson; Aug 28th, 2009 at 12:34 pm.
Reputation Points: 840
Solved Threads: 594
Senior Poster
firstPerson is offline Offline
3,862 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: auto-refresh program
Next Thread in C++ Forum Timeline: Matching text at the IF statement





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC