السلام عليكم ورحمة الله وبركاته :D
اعجبني المنتدى واعجبتني مواضيعه وناسه فاهمين صح للبرمجيات
:angry: انا عندي مشكله اني مبتديئة في السي ++ وعندي سؤال لازم احله اللي هو لينك ليست بالكلاس
بصراحه انا اول مره اجرب اللينك لست بالسي ++ بس جربتها سابقا في السي
;)
البرنامج كثير منتشره له اكواد بالنت بس ماعرفت اميز من كثرهم
ياليت اذا احد عنده كود للينك ليست فيه اينسيرت وفيه ديليت انه يكتب لي اكون شاكره له :)
السؤال يقول :blink: :
The linked list provides a more flexible storage system, the space for each data item is obtained as needed with new, and each item is connected, or linked, to the next data item using a pointer.
We need to create a linked list class (called linklist )
The individual data items, or links, are represented by structures of type link. Each structure contains an integer- representing the object’s single data item and a pointer to the next link.
The list itself stores a pointer to the link at the head of the list.
The class should contain functions that do the following:
1. Construct the list, leaving it empty.
2. Overload the constructor that permits to make the first node with a given data.
3. Determine whether the list is empty or not.
4. Find the size of the list.
5. Insert an entry at a specified position of the list.
6. Retrieve an entry at a specified position of the list.
7. Remove an entry from a specified position in the list.
8. Return a pointer to a node that contains the first occurrence of a specified item.
9. Destructor
Write a main function to test all the previous functions.
Write a function that permits to replace the contents of the node that contains a specified item with a given item.
Write a function that counts the number of occurrence for a specified item
:( :( :( :( :( :(