Question: Need help completing this c++ program #include //cin,cout #include //strlen(),strcmp(),strcpy() using namespace std; //User Libraries Here //Global Constants Only, No Global Variables //Allowed like PI,

Need help completing this c++ program

Need help completing this c++ program #include //cin,cout #include //strlen(),strcmp(),strcpy() using namespace

#include //cin,cout #include //strlen(),strcmp(),strcpy() using namespace std;

//User Libraries Here

//Global Constants Only, No Global Variables //Allowed like PI, e, Gravity, conversions, array dimensions necessary const int COLMAX=80;//Only 20 required, and 1 for null terminator

//Function Prototypes Here int read(char [][COLMAX],int &);//Outputs row and columns detected from input void sort(char [][COLMAX],int,int);//Sort by row void print(const char [][COLMAX],int,int);//Print the sorted 2-D array

//Program Execution Begins Here int main(int argc, char** argv) { //Declare all Variables Here const int ROW=30; //Only 20 required char array[ROW][COLMAX]; //Bigger than necessary int colIn,colDet,rowIn,rowDet;//Row, Col input and detected //Input the size of the array you are sorting cout>rowIn; cout>colIn; //Now read in the array of characters and determine it's size rowDet=rowIn; cout Input the size of the 2 dimensional character array, then sort by row. Note: this problem is repeated in question 8 but you are required there to modify the ascii code for the sort. Here just use strcmpo

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!