0

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

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by tiara
0

>>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)

0

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. :D

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

Wishing you all properous day. :D

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.