Deleting from A(m,n) array

Hello everyone,

I need to delete a line element from A(m,n) array, whose index is at B(m) array. I guess, it isn't as simple as giving B(m) only 1 digit and deleting that value in A(m,n) first line.

For example:
Wrting in the txt file 1 3.
Having the A(m,n) values in the txt:
3 4
1 2 3 4
5 6 7 8
9 10 11 12.
Getting:
1 2 4
5 6 7 8
9 10 11 12.

I guess, this expamle isn't matching the task I mentioned at the start of the post. And I know that you can't actually delete elements from array.
Any ideas would be apreciated, and some code wouldn't be bad (with or without explanations).
I don't understand what you're trying to do but try an STL container:http://www.cplusplus.com/reference/stl/vector/
Topic archived. No new replies allowed.