test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
37
.config/Code/User/History/21fc77b3/00hf.cpp
Normal file
37
.config/Code/User/History/21fc77b3/00hf.cpp
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Matrix{
|
||||
int rows;
|
||||
int cols;
|
||||
int **matrix;
|
||||
public:
|
||||
|
||||
Matrix(int rows, int cols) : rows(rows), cols(cols){
|
||||
matrix = new int*[rows];
|
||||
for(int i=0;i<rows;i++) matrix[i] = new int[cols];
|
||||
input();
|
||||
}
|
||||
|
||||
void input(){
|
||||
for(int i=0;i<rows;i++){
|
||||
for(int j=0;j<cols;j++){
|
||||
cin>>matrix[i][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue