Question
2. Write a bash script to call your C++ program in problem 1 with three pairs of different matrix dimensions.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
#ifndef MATRIX_H#define MATRIX_H
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#include <pthread.h>
using namespace std;
class matrix {
public:
matrix(int p = 1, int q = 1);
matrix(const matrix& orig);
virtual ~matrix();
friend ostream &operator<<(ostream &stream, const matrix & o);
matrix operator*(const matrix & o);
//private:
// void *runner(void * param);
private:
int row; //number of row
int col; // number of col
int ** m;
};...