I\'m having some issues passing vectors to functions. My concern is not with my logic itself, as if I need to adjust later I will. My program requirements state that I must
Your program segfault because you create matrix with a size of (0,0). When you try to set elements : segfault :)
Suggestions :
For your class try to implement something like :
class Matrix
{
public:
Matrix(unsigned rows, unsigned columns);
void add(const Matrix&)
void print();
// etc.
};
my2c