Is wanted to make a program that can perform some basic instructions on matrix. I wanted to work with pointers, so I have no size limitations. I get the following code :
cin >> *(matrix+i);
I can display the content of matrix, but the problem is if I want to make a copy:
the following command is accepted at the compilation, but does crash during the execution.
This is not an L-Value. I know I can use the "new" instruction to reserve the memory needed, but how can I change the size of my matrix? Is there a similar expression to C's realloc ?