
The Doubly Linked List (DLL) example in Unit 6 demonstrates uses a list of integers to demonstrate the data structure, a simple but not very interesting case. This way your results will not only be automatically sorted, but any duplicates in your linked list will not appear in your sort results, also automatically. But data items are NOT sorted in a linked list, so what are we going to do about the requirement of sorting our search result? Our solution is to load your search results into a TreeSet, where items are sorted "automatically". A doubly-linked list is particularly nice because you can iterate and search from the front (head) of the end of the list or the back (tail). LInkedLists are convenient because it is easy and fast to insert and remove frequently modified items from the list. Your phone data will be stored in a DoublyLinkedList. Search results can return one or multiple items and the list comes back in sorted order. You can search by phone number first-name, last-name, or even a portion of a name. Printf("\nName:%s\naddress:%s\nFather name:%s\nMother name:%s\nMobile no:%ld\nsex:%s\nE-mail:%s\nCitision no:%s",p.name,p.address,p.father_name,p.mother_name,p.mble_no,p.sex,p.mail,p.Project 6: Mobile Phone Directory Using Doubly Linked Lists Data Structure Submit Assignment Mobile Telephone Directory apps support searching and sorting using just a few characters of the search criteria. Printf("\n\tDetail Information About %s",name) Printf("\nEnter name of person to search\n")
Printf("\nName=%s\nAdress=%s\nFather name=%s\nMother name=%s\nMobile no=%ld\nSex=%s\nE-mail=%s\nCitizen no=%s",p.name,p.address,p.father_name,p.mother_name,p.mble_no,p.sex,p.mail,p.citision_no) Printf("\nfile opening error in listing :") Printf("\t1.Add New \t2.List \t3.Exit \n\t4.Modify \t5.Search\t6.Delete") You are free to copy the given source code below or download the downloadable source code given. Third choose “ C language” and click “ next“.įourth name the project you’ve created and click “ next” after that click “ finish“. Second click the “ console application” and after that click “ next“.
Phone Book Management System In C With Source Codeįirst open the code blocks IDE and click “ create a new project“.