assign3/mat.cpp
// just print the size and name of the matrix
just print the size and name of the matrix
just print the size and name of the matrix
void Matrix::printSize(std::string msg)
{
    if (msg.length()) {
        printf("%s ", msg.c_str());
    }
    if (name.length()) {
        printf("(size of %s: %d X %d)\n", name.c_str(), maxr, maxc);
    }
    else {
        printf("(size: %d X %d)\n", maxr, maxc);
    }
    fflush(stdout);
}
void Matrix :: printSize ( std :: string msg ) { if ( msg . length ( ) ) { printf ( " " , msg . c_str ( ) ) ; } if ( name . length ( ) ) { printf ( " \n " , name . c_str ( ) , maxr , maxc ) ; } else { printf ( " \n " , maxr , maxc ) ; } fflush ( stdout ) ; }
just print the size and name of the matrix
just print the size and name of the matrix