Question: #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 2d 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 read2DArray( const char* name );
void print2DArray( RoomData room );
void free2DArray( RoomData room );
void recFill( RoomData room, int row, int col );
/* change the following constants to add/remove some cases for testing */
const int numFiles =2;
const int numTests =3;
const char *defaultFilenames[]={ "room-Default01.txt", "room-NewTests01.txt"};
const int defaultRow[]={3,3,0};
const int defaultCol[]={4,1,0};
/************************** DO NOT MODIFY THESE FUNCTIONS BELOW **************************/
int main( int argc, char *argv[])
{
int i,j;
RoomData room;
printf("Running default test files:
");
for( i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!