Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

c++

April 19, 2014 Posted by: maryam Views: 676

Declare a structure with a type name: Car   containing:
reporting Mark  a string of 5 or less upper case characters

carNumber  an int

kind  could be box tank flat or other

loaded  a booldestination  a string with a

destination or the word NONE

 main * Uses new to obtain space for the data structure  * Calls the other two functions  * Deletes the space obtained using new
  input  * Read all the data from the user  * After all the data has been read, put all this data into the structure

output
  * Print the data in a neat format
Put the main function first.Use the function names and field names specified above.Arrange the functions in the order listed above.
Test your program with the following data:
reportingMark  SP

carNumber  34567

kind  box

loaded  true

destination  Salt Lake City

Best Answer

No answer

Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe