Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Required Structsand Function Prototypes Here are three #defines for important constants to use: #define INITSIZE 1 0 #define MAXTEN 5 0 #define MAXROWS 1 0
Required Structsand Function Prototypes
Here are three #defines for important constants to use:
#define INITSIZE
#define MAXTEN
#define MAXROWS
The first represents the initial size of any row in terms of number of orders
The second represents the maximum length of a name for an order.
The third represents the maximum number of rows in the theater.
For safety reasons or if you want to use based indexing feel free to add to the last two.
The following struct definition should be used for an order:
typedef struct order
int sseat;
int e seat;
char name;
order;
The reason the row isn't stored in the order is that each row number will implicitly be equal to the index in the array storing the rows for the movie theater.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started