I'm doing this class called matrix, and I want to work with dynamic arrays, istreams ostreams, with scattered vectors, but I have not been able to start, this is what I did, any idea is appreciated:
// Operaciones con matrices:suma,resta,multiplicación, inversa istream ostream
#pragma once
#include<iostream>
#include <cmath>
using namespace std;
class matriz {
private:
const int m_ = 50; //filas primera matriz
const int n_ = 50:
const int f_ = 50; //filas segunda matriz
const int c_ = 50;
const int b_ = 50;//filas matriz suma
const int e_ = 50;
int A[m_][n_];
int B[f_][c_];
int C[b_][e_];
double * val_;
int* inx_;
int nz_;
int n_;
int *M= new int [m_*n_]; // array dinamico primera matriz
int *N= new int [f_*c_]; // array dinamico segunda matriz
public:
//constructores
matriz (const int m,const int n, const int f, const int c) {
m_=m;
n_=n;
f_=f;
c_=c;
}
~matriz() {}
//getters y setters
void setm_ (const int m) {m_=m;}
const int getm_(void) {return m_;}
void setn_ (const int n) {n_=n}
const int getn_(void) {return n_;}
void setf_ (const int n) {n_=n;}
const int getf_(void) {return f_;}
void setc_(const int c) {c_=c;}
const int getc_ (void) {return c_;}
//métodos
int suma(void);
int resta(void);
int multiplicacion(void);
int inversa(void);
};
for (int i=0; i<
So far what I did, thank you very much thank you very much