Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include #include #include typedef struct RoomData { char * * roomArray; / * the 2 d char array representing the room shared by Jethro and
#include
#include
#include
typedef struct RoomData
char roomArray; the d char array representing the room shared by Jethro and Cletus
int numrows; the number of rows for the char roomArray
int numcols; the number of columns for the char roomArray
RoomData;
RoomData readDArray const char name ;
void printDArray RoomData room ;
void freeDArray RoomData room ;
void recFill RoomData room, int row, int col ;
change the following constants to addremove some cases for testing
const int numFiles ;
const int numTests ;
const char defaultFilenames "roomDefaulttxt "roomNewTeststxt;
const int defaultRow;
const int defaultCol;
DO NOT MODIFY THESE FUNCTIONS BELOW
int main int argc, char argv
int ij;
RoomData room;
printfRunning default test files:
;
for i; i
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