Write the following in C Create a program that has an array for which the user determines the maximum size.  The array’s elements will be of some user defined type (struct) that you will make up.  This array will be stored in disjoint dynamic memory.  The program must have some type of menu.  You will pick your own theme for the program.   Be sure to utilize error checking and be sure you free of all memory used on the heap. DO NOT: Use global variables Use the word goto Use the break command outside a case stateme

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 29SA
icon
Related questions
Question

Write the following in C

Create a program that has an array for which the user determines the maximum size.  The array’s elements will be of some user defined type (struct) that you will make up.  This array will be stored in disjoint dynamic memory.  The program must have some type of menu.  You will pick your own theme for the program.  

Be sure to utilize error checking and be sure you free of all memory used on the heap.

DO NOT:

  • Use global variables
  • Use the word goto
  • Use the break command outside a case statement
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning