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
Area under the curve Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve bet

give an example of function

example of program to ad two numbers

Define a structure of student class:  Write a program to define a structure of student record in C. class student { char name[20]; int roll_no; int marks[2];

program that generate university statistical bar graph using 3d function

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

dispaly the last ant on rod

Rules of function: Inline function created without prototype it reduces the memory and it is used only for small function. Inline function cannot have recursion, static var

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers. Descriptions of this algorithm are available in algebra books

Polymorphism C++ supports this idea - that different objects do "the right thing "- by function polymorphism and class polymorphism. Poly means many, while morph means form.