For the next program it is necessary to add automation of the assembly of a multi-file project using script shells and auto-pickers
How to use Make?
#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int N, j_max; cout << "\n Input size of matrix: "; cin >> N; cout << endl; srand(time(NULL)); int **m = new int* [N]; for (int i=0; i<N; i++) { m[i] = new int[N]; } for (int i=0; i<N; i++) { for (int j=0; j<N; j++) { m[i][j] = rand()%50-0; cout << " " << m[i][j] << "\t"; } cout << endl; } cout << endl; for (int i=0; i<N; i++) { j_max = 0; for (int j=1; j<N; j++) if (m[i][j_max] < m[i][j]) { j_max = j; } m[i][j_max] = 0; } for (int i=0; i<N; i++) { for (int j=0; j<N; j++) { cout << " " << m[i][j] << "\t"; } cout << endl; } cout << endl; bool kl = true; for (int i=1; i<N; i++) { for (int j=0; j<i; j++) { if (m[i][j] != m[j][i]) kl = false; } } if (kl) { cout << " Symetric matrix." << endl; } else { cout << " Not symetric matrix." << endl; } cout << endl; delete [] m; return 0; }