I have homework. I'm not looking for someone to do this work for me, I just have problems with one small aspect, although I would take advice on other bits as well.
Appointment:
Write a class using a two-dimensional dynamic array.
The constructor runs in array sizes. The constructor also inserts all the values ββin the dynamic array into the row index times the column index.
- Exchange two columns of a two-dimensional array, where column indices are passed as parameters. Do this by simply copying the addresses, not the column values.
- Delete a column of a two-dimensional array, where the column index is passed as a parameter. Don't just use the delete operator in the column array and set the horizontal array element to NULL. Reduce the size of the horizontal matrix by 1.
- Create a print function for the class to print the values ββof a two-dimensional array and make sure your functions are working correctly. Once you know that they work correctly, delete the print function.
I need help to figure out how to declare a 2D array in a private section. And, as already mentioned, if someone can give me other hints on how to do this, it will be appreciated.
source
share