Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
