Matrix operation error messages

I am trying to do matrix : multiplication , addition , subtraction and transverse using vector ,set function and get function. i can not understand what is the error i am doing in definition . .h and .cpp files and the list of errors is attached . Can you tell me why are these errors happening and suggesting changes if that's ok ?

Header.h
#pragma once
#include<iostream>
#include<vector>
#include<stdlib.h>
using namespace std;
class matrix {

public:



vector<vector<int>> matrix_shishir;
vector<vector<int>> defmatrix(vector<vector<int>> matrix1, vector<vector<int>> matrix2);

vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn);

vector<vector<int>> definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2);

vector<vector<int>> matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixT(vector<vector<int>> matrix5 );
void delmat(vector<vector<int>>* matrix_shishir)
{
delete[] matrix_shishir;
}

void setRow(int rows)
{

matrixrow = rows;
}

void matrix::setColumn(int x)
{
matrixcolumn = x;

}
int getColumn(vector<vector<int>> matrix1)
{
int a;

a = matrix1[0].size();
return a;
}

int getRow(vector<vector<int>> matrix1)

{

int b = matrix1.size();
return b;
}

void setdefinematrix( vector<vector<int>> matrix4)
{
int a = matrix4[0].size();
int b = matrix4.size();

matrix4.resize(a);
for (int i = 0;i < b;i++)
matrix4[i].resize(b);

}



private:
int matrixrow;
int matrixcolumn;
vector<vector<int>> matrix_var;
};



HEADER.cpp


#pragma once
#include"Header.h"

using namespace std;



/* fixing up size of matrix */

void matrix::definematrix(int definematrixrow, int definematrixcolumn)
{
matrixcolumn = definematrixcolumn;
matrixrow = definematrixrow;
matrix_shishir.resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shishir[i].resize(definematrixcolumn);
}

// matrix deletion
void matrix::delmat(vector<vector<int>>* vector1)
{
delete[] vector1;
}


//matrix multiplication

vector<vector<int>> matrix::definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
matrix matrixM;
if (getColumn(matrix1) != getRow(matrix2))
{
std::cout << "matrix can not be multiplied";

}
if(getColumn(matrix1) == getRow(matrix2))
{

matrixM.definematrix(getRow(matrix1), getColumn(matrix2));

for (int p = 0;p < getRow(matrix1);p++)
{
for (int q = 0;q < getColumn(matrix2);q++)
{

matrixM.matrix_shishir[p][p] += matrix1[p][q]*matrix2[q][p];

}

return definematrixM(matrix1, matrix2) ;
}

}

};

// matrix substraction
vector<vector<int>> matrix:: matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
int a = matrix1[0].size();
int b = matrix2[0].size();

if ( a > b || a == b)
{
matrixS(matrix1,matrix2)[0].resize(a);
}
else
{
matrixS(matrix1, matrix2)[0].resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c== d)
{
matrixS(matrix1, matrix2).resize(c);
}
else
{
matrixS(matrix1, matrix2).resize(d);
}

for(int i=0;i<matrixS(matrix1, matrix2).size();i++)
for (int j = 0;j < matrixS(matrix1, matrix2)[0].size();j++)
{
matrixS(matrix1, matrix2)[i][j] = matrix1[i][j] - matrix2[i][j];

}


return matrixS(matrix1, matrix2);

};

//matrix addition
vector<vector<int>> matrix::matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
vector<vector<int>>matrix5;
int a = matrix1[0].size();
int b = matrix2[0].size();

if (a > b || a== b)
{
matrixA(matrix1,matrix2).resize(a);
}
else
{
matrixA(matrix1,matrix2).resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c == d)
{
matrixA(matrix1,matrix2).resize(c);
}
else
{
matrixA(matrix1,matrix2).resize(d);
}

for (int i = 0;i< matrixA(matrix1,matrix2).size();i++)
for (int j = 0;j < matrixA(matrix1, matrix2)[0].size();j++)
{
matrix5[i][j] = matrix1[i][j] + matrix2[i][j];
}
matrixA(matrix1, matrix2) = matrix5;
return matrixA(matrix1, matrix2);
};

// print matrix



//matrix transpose
vector<vector<int>>matrix::matrixT(vector<vector<int>> matrix4)
{

for (int j = 0;j < matrix4.size();j++)
for (int i = 0;i<matrix4[0].size();i++)
{
matrix.setdefinematrix() == matrix4[j][i];

}



cout << matrixT(matrix4);

};


SOURCE .CPP

#include "Header.h"
#include"Header.cpp"
#include<iostream>
#include<sstream>
#include<stdlib.h>
#include<conio.h>




int main() {

matrix my_matrix;

int m, n;
cout << "enter the matrix row number";
cin >> m;
my_matrix.setRow(m);


cout << "enter the matrix column number";
cin >> n;
my_matrix.setColumn(n);

my_matrix.definematrix(m, n);

cout << "enter the matrix values";
for (int i = 0; i < m;i++)
{
for (int j = 0;j < n;j++)
{

cin >> matrix_shishir() >> " ";
}

}

for (int p = 0; p < m;p++)
{
for (int q = 0;q < n;q++)
{

cin >> matrix_shishir[p][q] >> " ";
}

}

my_matrix.definematrixM();
my_matrix.matrixA();
my_matrix.matrixS();
my_matrix.matrixT();

my_matrix.delmat();


return 0;
}


Errors :

Severity Code Description Project File Line Suppression State
Error C2556 'void matrix::definematrix(int,int)': overloaded function differs only by return type from 'std::vector<std::vector<int,std::allocator<_Ty>>,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> matrix::definematrix(int,int)' Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\header.cpp 16
Error C2371 'matrix::definematrix': redefinition; different basic types Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\header.cpp 15
Error C2371 'matrix::definematrix': redefinition; different basic types Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\header.cpp 15
Error (active) declaration is incompatible with "std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> matrix::definematrix(int definematrixrow, int definematrixcolumn)" (declared at line 15 of
The definematrix() you declare in the class returns an std::vector<std::vector<int>>, while the one you define outside the class returns nothing.
in header.h file

i have defined as
vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn);

in header.cpp file
i am asking it to return void function while initializing the matrix .

Can you please be a little more specific?
You can't do that. If you declared that a function returns type A you can't later define it to return type B. You have to pick one.
Thanks . I changed it but their is another issue . i wanted to define matrix size using inputted int define row , int define column
vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn)
{
int matrixcolumn = definematrixcolumn;
int matrixrow = definematrixrow;

=> matrix_shishir(definematrixrow,definematrixcolumn).resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shishir[i].resize(definematrixcolumn);
}
In this line => matrix_shishir : it says : matrix_shishir is undefined . but i defined in the header file . Can you explain ?
'matrix_shishir' is declared as a data member of matrix, but in some places you use it as if it was a global function.
i defined a new variable in public as
vector<vector<int>> matrix_shi(int definematrixrow, int definematrixcolumn);

and then

{
int matrixcolumn = definematrixcolumn;
int matrixrow = definematrixrow;

matrix_shi(definematrixrow,definematrixcolumn).resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shi[i].resize(definematrixcolumn);
}

but the error is still there . Should not the error go away if i inputted a new variable : matrix_shi instead of the old one:matrix_shishir ?
It's difficult to tell without context. That call you have there is only valid from the scope of a member function of matrix. Also you're using the member inconsistently, it would seem.
matrix_shi(definematrixrow,definematrixcolumn) <-- Function?
matrix_shi[i] <-- Or vector?
I changed it like you said .It is the first part of Header.cpp file where i am creating a vector to store the arguments
{
int matrixcolumn = definematrixcolumn;
int matrixrow = definematrixrow;


=>matrix_shi.resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shi[i].resize(definematrixcolumn);
}
I am using resize to create the first row and then using loop function to create columns .It is still showing error . it says " matrix_shi is not defined " . But it is defined in header.h file . This means that even if i change the variable names or use loop function for both row and column, the vector will still not be created . matrix_shi is not used anywhere in the program .So name is not the problem . Can you suggest something ?
Not by just looking at bits and pieces of the code. If you've modified it then please post the entire thing, because I can't tell what I'm looking at.
Also, I'm sick of looking at unformatted code, could you use code tags, please. They're there for a reason.

[code]
Your code here.
[/code]
I am sorry . The reason it is showing error is because the vector is not initialized . i was using resize on null without initialization .

[Header.h]
#pragma once
#include<iostream>
#include<vector>
#include<stdlib.h>
using namespace std;
class matrix {

public:

int definematrixrow;
int definematrixcolumn;

vector<vector<int>> matrix_shishir(int definematrixrow,int definematrixcolumn);
vector<vector<int>> matrix_shi(int definematrixrow, int definematrixcolumn);

vector<vector<int>> defmatrix(vector<vector<int>> matrix1, vector<vector<int>> matrix2);

vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn);

vector<vector<int>> definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2);

vector<vector<int>> matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixT(vector<vector<int>> matrix5 );
void delmat(vector<vector<int>>* matrix_shishir)
{
delete[] matrix_shishir;
}

void setRow(int rows)
{

matrixrow = rows;
}

void matrix::setColumn(int x)
{
matrixcolumn = x;

}
int getColumn(vector<vector<int>> matrix1)
{
int a;

a = matrix1[0].size();
return a;
}

int getRow(vector<vector<int>> matrix1)

{

int b = matrix1.size();
return b;
}

void setdefinematrix( vector<vector<int>> matrix4)
{
int a = matrix4[0].size();
int b = matrix4.size();

matrix4.resize(a);
for (int i = 0;i < b;i++)
matrix4[i].resize(b);

}



private:
int matrixrow;
int matrixcolumn;
vector<vector<int>> matrix_var;
};

[Header.cpp]

#pragma once
#include"Header.h"


using namespace std;



/* fixing up size of matrix */

vector<vector<int>> matrix::defmatrix(vector<vector<int>> matrix1, vector<vector<int>> matrix2)
{
return vector<vector<int>>();
}


vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn)
{
int matrixcolumn = definematrixcolumn;
int matrixrow = definematrixrow;
vector<std::vector<int>> matrix_shi(definematrixrow, std::vector<int>(definematrixcolumn));
matrix_shi.resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shi[i].resize(definematrixcolumn);
}

// matrix deletion
void matrix::delmat(vector<vector<int>>* vector1)
{
delete[] vector1;
}


//matrix multiplication

vector<vector<int>> matrix::definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
matrix matrixM;
if (getColumn(matrix1) != getRow(matrix2))
{
std::cout << "matrix can not be multiplied";

}
if(getColumn(matrix1) == getRow(matrix2))
{

matrixM.definematrix(getRow(matrix1), getColumn(matrix2));

for (int p = 0;p < getRow(matrix1);p++)
{
for (int q = 0;q < getColumn(matrix2);q++)
{

matrixM.matrix_shishir[p][p] += matrix1[p][q]*matrix2[q][p];

}

return definematrixM(matrix1, matrix2) ;
}

}

};

// matrix substraction
vector<vector<int>> matrix:: matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
int a = matrix1[0].size();
int b = matrix2[0].size();

if ( a > b || a == b)
{
matrixS(matrix1,matrix2)[0].resize(a);
}
else
{
matrixS(matrix1, matrix2)[0].resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c== d)
{
matrixS(matrix1, matrix2).resize(c);
}
else
{
matrixS(matrix1, matrix2).resize(d);
}

for(int i=0;i<matrixS(matrix1, matrix2).size();i++)
for (int j = 0;j < matrixS(matrix1, matrix2)[0].size();j++)
{
matrixS(matrix1, matrix2)[i][j] = matrix1[i][j] - matrix2[i][j];

}


return matrixS(matrix1, matrix2);

};

//matrix addition
vector<vector<int>> matrix::matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
vector<vector<int>>matrix5;
int a = matrix1[0].size();
int b = matrix2[0].size();

if (a > b || a== b)
{
matrixA(matrix1,matrix2).resize(a);
}
else
{
matrixA(matrix1,matrix2).resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c == d)
{
matrixA(matrix1,matrix2).resize(c);
}
else
{
matrixA(matrix1,matrix2).resize(d);
}

for (int i = 0;i< matrixA(matrix1,matrix2).size();i++)
for (int j = 0;j < matrixA(matrix1, matrix2)[0].size();j++)
{
matrix5[i][j] = matrix1[i][j] + matrix2[i][j];
}
matrixA(matrix1, matrix2) = matrix5;
return matrixA(matrix1, matrix2);
};

// print matrix



//matrix transpose
vector<vector<int>>matrix::matrixT(vector<vector<int>> matrix4)
{

for (int j = 0;j < matrix4.size();j++)
for (int i = 0;i<matrix4[0].size();i++)
{
matrix.setdefinematrix() == matrix4[j][i];

}



cout << matrixT(matrix4);

};
[source.cpp]

#include "Header.h"
#include"Header.cpp"
#include<iostream>
#include<sstream>
#include<stdlib.h>
#include<conio.h>




int main() {

matrix my_matrix;

int m, n;
cout << "enter the matrix row number";
cin >> m;
my_matrix.setRow(m);


cout << "enter the matrix column number";
cin >> n;
my_matrix.setColumn(n);

my_matrix.definematrix(m, n);

cout << "enter the matrix values";
for (int i = 0; i < m;i++)
{
for (int j = 0;j < n;j++)
{

cin >> matrix_shishir() >> " ";
}

}

for (int p = 0; p < m;p++)
{
for (int q = 0;q < n;q++)
{

cin >> matrix_shishir[p][q] >> " ";
}

}

my_matrix.definematrixM();
my_matrix.matrixA();
my_matrix.matrixS();
my_matrix.matrixT();

my_matrix.delmat();


return 0;
}

[ERRORS]
Severity Code Description Project File Line Suppression State
Error C3861 'matrix_shishir': identifier not found Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 33
Error C2084 function 'void matrix::delmat(std::vector<std::vector<int,std::allocator<_Ty>>,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> *)' already has a body Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\header.cpp 29
Error C2084 function 'void matrix::delmat(std::vector<std::vector<int,std::allocator<_Ty>>,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> *)' already has a body Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\header.cpp 29
Error (active) identifier "matrix_shishir" is undefined Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 33
Error (active) identifier "matrix_shishir" is undefined Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 43
Error C2065 'matrix_shishir': undeclared identifier Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 43
Error (active) too few arguments in function call Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 48
Error C2660 'matrix::definematrixM': function does not take 0 arguments Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 48
Error (active) too few arguments in function call Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 49
Error C2660 'matrix::matrixA': function does not take 0 arguments Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 49
Error (active) too few arguments in function call Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 50
Error C2660 'matrix::matrixS': function does not take 0 arguments Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 50
Error (active) too few arguments in function call Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 51
Error C2660 'matrix::matrixT': function does not take 0 arguments Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 51
Error (active) too few arguments in function call Project5 c:\Users\chica\Documents\Visual Studio 2015\Projects\Project5\Project5\Source.cpp 53















Hi , the error message i am unable to figure out is :

:Severity Code Description Project File Line Suppression State
Error C2679 binary '>>': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion) Project5 c:\users\chica\documents\visual studio 2015\projects\project5\project5\source.cpp 49
Can anybody what's wrong with the code ?

{my code }
[HEADER.H]
#pragma once
#include<iostream>
#include<vector>
#include<stdlib.h>
using namespace std;
class matrix {

public:

int definematrixrow;
int definematrixcolumn;

vector<vector<int>> matrix_shishir(int definematrixrow,int definematrixcolumn);
vector<vector<int>> matrix_shi(int definematrixrow, int definematrixcolumn);
vector<vector<int>> matrix_x(vector<vector<int>>);

vector<vector<int>> defmatrix(vector<vector<int>> matrix1, vector<vector<int>> matrix2);

vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn);

vector<vector<int>> definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2);

vector<vector<int>> matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2);


vector<vector<int>> matrixT(vector<vector<int>> matrix5 );
void delmat(vector<vector<int>>* matrix_shishir)
{
delete[] matrix_shishir;
}

void setRow(int rows)
{

matrixrow = rows;
}

void matrix::setColumn(int x)
{
matrixcolumn = x;

}
int getColumn(vector<vector<int>> matrix1)
{
int a;

a = matrix1[0].size();
return a;
}

int getRow(vector<vector<int>> matrix1)

{

int b = matrix1.size();
return b;
}

void setdefinematrix( vector<vector<int>> matrix4)
{
int a = matrix4[0].size();
int b = matrix4.size();

matrix4.resize(a);
for (int i = 0;i < b;i++)
matrix4[i].resize(b);

}



private:
int matrixrow;
int matrixcolumn;
vector<vector<int>> matrix_var;
};

[HEADER.CPP]
#pragma once
#include"Header.h"


using namespace std;



/* fixing up size of matrix */

vector<vector<int>> matrix::defmatrix(vector<vector<int>> matrix1, vector<vector<int>> matrix2)
{
return vector<vector<int>>();
}


vector<vector<int>> definematrix(int definematrixrow, int definematrixcolumn)
{
int matrixcolumn = definematrixcolumn;
int matrixrow = definematrixrow;
vector<std::vector<int>> matrix_shi(definematrixrow, std::vector<int>(definematrixcolumn));
matrix_shi.resize(definematrixrow);
for (int i = 0;i < definematrixcolumn;i++)
matrix_shi[i].resize(definematrixcolumn);
}

// matrix deletion/

/*
delmat(vector<vector<int>>* vector1)
{
delete[] vector1;
return NULL;
} */


//matrix multiplication

vector<vector<int>> matrix::definematrixM(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
matrix matrixM;
if (getColumn(matrix1) != getRow(matrix2))
{
std::cout << "matrix can not be multiplied";

}
if(getColumn(matrix1) == getRow(matrix2))
{

matrixM.definematrix(getRow(matrix1), getColumn(matrix2));

for (int p = 0;p < getRow(matrix1);p++)
{
for (int q = 0;q < getColumn(matrix2);q++)
{

matrixM.matrix_shishir[p][p] += matrix1[p][q]*matrix2[q][p];

}

return definematrixM(matrix1, matrix2) ;
}

}

};

// matrix substraction
vector<vector<int>> matrix:: matrixS(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
int a = matrix1[0].size();
int b = matrix2[0].size();

if ( a > b || a == b)
{
matrixS(matrix1,matrix2)[0].resize(a);
}
else
{
matrixS(matrix1, matrix2)[0].resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c== d)
{
matrixS(matrix1, matrix2).resize(c);
}
else
{
matrixS(matrix1, matrix2).resize(d);
}

for(int i=0;i<matrixS(matrix1, matrix2).size();i++)
for (int j = 0;j < matrixS(matrix1, matrix2)[0].size();j++)
{
matrixS(matrix1, matrix2)[i][j] = matrix1[i][j] - matrix2[i][j];

}


return matrixS(matrix1, matrix2);

};

//matrix addition
vector<vector<int>> matrix::matrixA(vector<vector<int>>matrix1, vector<vector<int>>matrix2)
{
vector<vector<int>>matrix5;
int a = matrix1[0].size();
int b = matrix2[0].size();

if (a > b || a== b)
{
matrixA(matrix1,matrix2).resize(a);
}
else
{
matrixA(matrix1,matrix2).resize(b);
}

int c = matrix1.size();
int d = matrix2.size();
if (c > d || c == d)
{
matrixA(matrix1,matrix2).resize(c);
}
else
{
matrixA(matrix1,matrix2).resize(d);
}

for (int i = 0;i< matrixA(matrix1,matrix2).size();i++)
for (int j = 0;j < matrixA(matrix1, matrix2)[0].size();j++)
{
matrix5[i][j] = matrix1[i][j] + matrix2[i][j];
}
matrixA(matrix1, matrix2) = matrix5;
return matrixA(matrix1, matrix2);
};

// print matrix


//matrix transpose
vector<vector<int>>matrix::matrixT(vector<vector<int>> matrix4)
{

for (int j = 0;j < matrix4.size();j++)
for (int i = 0;i<matrix4[0].size();i++)
{
vector<vector<int>> matrix_shi(i, std::vector<int>(j));
matrix_shi.resize(i);
matrix_shi[j].resize(j);
matrix_shi[i][j]==matrix4[j][i];


for (int p = 0;p < i;p++)
for (int q = 0;q < j;j++)
cout << matrix_shi[i][j];
}


};

[SOURCE.CPP]

#include "Header.h"
#include"Header.cpp"

#include<sstream>
#include<stdlib.h>
#include<conio.h>
#include<fstream>
#include<istream>
#include<string>




int main() {

matrix my_matrix;

int m, n;
cout << "enter the matrix row number";
cin >> m;
my_matrix.setRow(m);


cout << "enter the matrix column number";
cin >> n;
my_matrix.setColumn(n);

my_matrix.definematrix(m, n);

cout << "enter the matrix values";
for (int i = 0; i < m;i++)
{
for (int j = 0;j < n;j++)
{
vector<vector<int>> matrix_shi(i, std::vector<int>(j));
cin >> matrix_shi[i][j];

}

}

for (int p = 0; p < m;p++)
{
for (int q = 0;q < n;q++)
{
vector<std::vector<int>> matrix_shishir(p, std::vector<int>(q));
cin >> matrix_shishir[p][q];


}

}

my_matrix.definematrixM(
);
my_matrix.matrixA();
my_matrix.matrixS();
my_matrix.matrixT();

my_matrix.delmat();


return 0;
}








Topic archived. No new replies allowed.