|
From: Piotrus S. <pio...@wp...> - 2003-04-26 23:38:06
|
Hello
Could somebody help me to solve the following problem?
I have to swap two two-dimensional arrays. I wouldn't like to do it in
this way:
...
double vec_1[N][M],vec_2[N][M],temp;
int i,j;
...
for(i=0;i<N;i++)
for(j=0;j<M;j++)
{
temp=vec_1[i][j];
vec_1[i][j]=vec_2[i][j];
vec_2[i][j]=temp;
}
...
Thanks for advance. Peter.
|