Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Nested Relations And Complex Objects In Databases Lncs 361

Authors: Serge Abiteboul ,Patrick C. Fischer ,Hans-Jorg Schek

1st Edition

3540511717, 978-3540511717

More Books

Students also viewed these Databases questions