Link list taking an object...

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

Link list taking an object...

 
0
  #1
Nov 29th, 2005
Hello,

instead of using an array of objects I'm wanting to use an link list of objects. Could anyone point me in the directions?

One class is called:

Personal information...

The other is my link list. I'm stuck on how to get the link list to take an object as a type.

if code is needed I can post it up.

Thanks,
John
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: Link list taking an object...

 
0
  #2
Nov 29th, 2005
I suggest you to use STL's list container
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

Re: Link list taking an object...

 
0
  #3
Nov 29th, 2005
Could you help us through that? I've had a peek and it looks complicated
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: Link list taking an object...

 
0
  #4
Nov 29th, 2005
STL makes your life easier...u need to know templates for proper understanding of STL
See This Link
http://www.cprogramming.com/tutorial/stl/stllist.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC