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
Program1: Write a program to find the factorial of a given number. The input is user given. Final output is printed out on to the screen. Program2: Write a program to gene

What is conversion operator? Explain it with example.

C Program for FUNCTION OF MERGE #include conio.h> #include stdio.h> char cot(char a[],char b[]); void main() {           char a[50],b[50];           clrscr()

A: Method of passing arguments to a function that takes parameter of type reference.  for instance: void swap( int & x, int & y ) { int temp = x; x =

a popular joke among computer is to say............


Write a function that has an int parameter n, makes an integer mask having the bit 1 at the nth place from the rightmost bit, and returns the mask. For example, when n = 5 is passe

A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling

I am seeking an expert to create a 360 degree virtual tour in KRPano for use on PCs, tablets and smartphones. You will be given with panoramas in order to create an advanced KRPano

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your