how to delete an element in multdimensional array??

any body who can help me to solve the script for delete an element in multidimensional array

this is my script but it can't work, pls fix it

cout<<"\n\nInput the element that you want to delete = ";
cin>>delete;
for(int i=0;i<row1-1;i++)
{
for(int j=0;j<column-1;j++)
{
a[i][j]=a[i-1][j-1];
}
}

cout<<"\nThe New Data";
for (int i=0;i<row1;i++)
{
for (int j=0;i<colomn1;j++)
{cout<<"\na["<<i<<"]["<<j<<"]="<<a[i][j];}
}



so pls fix it...need a.s.a.p
Firstly, http://www.cplusplus.com/forum/articles/17108/

Then, do explain, how would deleting work?
for example if I have and array
1 2 3
4 5 6
7 8 9

and delete the 5, what should be the result?
1 2 3
4 6
7 8 9
1 2 3
4 8 6
7   9

or what?

By the way, delete is a keyword, so you shouldn't use it as a variable name.
Topic archived. No new replies allowed.