Adding a new row to a matrix

Hello everyone.
I've got problems with two - dimensional arrays.
Need to add a new row to a dynamic matrix . But can't deal with the problem.The problem is this. I need to find the first row that contains a term bigger than 10 and add anew row after that row.
Is there anybody who can tell me what must I do or how must I write the code.
Am waiting for replays. Thanks in advance.
declare a new dynamic 2d array.
Nope I must do it in the same mother array .
Please, show how you create the "mother array".
int *pt = new int[3]{1,2,4};

int *temp = pt;

pt = new int[4]{1,2,3,4};

delete[] temp;
Last edited on
Topic archived. No new replies allowed.