Please Help Me

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

Join Date: Oct 2009
Posts: 5
Reputation: tiara is an unknown quantity at this point 
Solved Threads: 0
tiara tiara is offline Offline
Newbie Poster

Please Help Me

 
0
  #1
Oct 20th, 2009
Hello guys..

I am really new to OOP (object-oriented programming) with C++. I am trying to make a simulation window program. I have a bit confused about apply linked-list inside the class. I mean, I am trying use linked-list to do adding item menu. Yes, I make the lists of menu that consist of add item and delete item. Is the data structure I used (linked - list ) wrong and not be compatible inside class ? Is there another data structure better than linked-list ? I will be appreciate for your help. Thank you very much
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,970
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso
 
0
  #2
Oct 20th, 2009
It would be helpful if you posted your code.
(don't forget the code tags)
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,662
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1502
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning
 
-7
  #3
Oct 20th, 2009
>>Is the data structure I used (linked - list ) wrong and not be compatible inside class ?
No -- you should be able to use a linked list within a class

>> Is there another data structure better than linked-list ?
Yes -- use either <vector> (which is an array) or <list> (which is a linked list)
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: tiara is an unknown quantity at this point 
Solved Threads: 0
tiara tiara is offline Offline
Newbie Poster
 
0
  #4
Oct 21st, 2009
Woah,, thank you for you appreciation to help me. After I learn from many sources at web, I am now be able to apply the double linked-list within a class succesfully without a problem.

Besides that, I realize that OOP is more amazing than procedural programming. hehehe Hope I can improve my OOP fast. Wish me luck hehehe

Wishing you all properous day.
Reply With Quote Quick reply to this message  
Reply

Tags
c++

Message:



Other Threads in the C++ Forum


Views: 296 | Replies: 3
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC