Program create a user defined data structure - c++ program, C/C++ Programming

Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.   

a) Write a function called  insertCarIntoList  that takes creates a new  Car  (using the createAndInitializeCar function) and inserts it at the end of a given linked list of cars.    

b) Write a function called deleteCarFromList that takes a VIN and deletes the Car in a given list that has the given VIN. If the car with the given VIN is not found in the given list, display an appropriate message to the user.  

c) Write a "main" function that defines an external pointer to point to the beginning of a linked list of cars and repeatedly calls insertCarIntoList as long as the user wishes to continue to insert new nodes into the list pointed to by the external pointer. Once the user is done inserting nodes, ask the user to enter a VIN and then call the deleteCarFromList function to delete the Car with VIN from the list created above. 

 

Posted Date: 4/1/2013 5:22:22 AM | Location : United States







Related Discussions:- Program create a user defined data structure - c++ program, Assignment Help, Ask Question on Program create a user defined data structure - c++ program, Get Answer, Expert's Help, Program create a user defined data structure - c++ program Discussions

Write discussion on Program create a user defined data structure - c++ program
Your posts are moderated
Related Questions
A: In C++ a struct is alike to a class except for the default access specifier( refer to other question in the document). In C we ought to include the struct keyword while declarin

Problem: a) Give and Illustrate with the help of diagrams, four topologies for the Network Information System (NIS). b) Give methods for creating user accounts and groups.

how to declare arrays

Assignment:  write a C program and a MASM procedure.  The C program calls the MASM procedure to perform letter case conversion. Text sections covered:  12.1 to 12.3.1 Write a

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

make a marksheet of 2 student with 5 subject

1) Database: The database needs to be used for persistent storage of cars. For details of what information should be stored in the database, please see the description above. You

Define the Data File in C Programming? Many applications needs that information can written to or read from an auxiliary memory device. Such information is stock up on the memo

write aprogram for random -search to implement if a[i]=x;then terminate other wise continue the search by picking new randon inex into a