From the course: Master C Language Pointers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Manage a linked list - C Tutorial
From the course: Master C Language Pointers
Challenge: Manage a linked list
(upbeat techno music) - [Instructor] Here is a structure designed for a linked list that describes members of a family. It's a standard linked list type structure with a pointer member. The structure appears in this code provided in the exercise files. I've included some other definitions, such as the input function here as line 15. And a main function at line 46. This function contains some code. It also contains a menu system. The menu system is implemented in this switch case structure. But the commands don't do anything yet. The code compiles and runs. But it's just a skeleton. Your job is to write the commands that carryout the duties. Create code or write functions that complete the exercise file as presented. The duties are to add a record to the list, delete a record, list all records, save the records to a file, open the file to read in the records, and quit. Here's the program I built for my solution…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Understanding a linked list2m 20s
-
(Locked)
Implementing a linked list3m 36s
-
(Locked)
Removing structures4m 3s
-
(Locked)
Adding structures3m 3s
-
(Locked)
Creating a double-linked list2m 57s
-
(Locked)
Saving a linked list3m 4s
-
(Locked)
Challenge: Manage a linked list2m 13s
-
(Locked)
Solution: Manage a linked list2m 26s
-
-