求人帮小弟我看看 如何就弄不好呢

求人帮我看看 怎么就弄不好呢//将方阵转置#include iostreamusing namespace stdint main(){const int

求人帮我看看 怎么就弄不好呢
//将方阵转置
#include <iostream>
using namespace std;
int main()
{
const int M=4;
const int N=4;
double a[M][N]=
{
4,6,8,9,
2,7,4,5,
    3,8,16,15,
        1,5,7,11

};
double ta[N][M];
int i,j;
for (i=0;j<N;i=i+i)
for(j=0;j<M;j=j+1)
{
ta[i][j]=a[i][j];
}
cout<<"矩阵a为:"<<endl;
for(i=0;i<N;i=i+1)
{
for(int j=0;j<M;j=j+1)
cout<<a[i][j]<<"\t";
cout<<endl;
}
cout<<"矩阵a的转置阵为:"<<endl;
for(i=0;i<N;i=i+1)
{
for(int j=0;j<M;j=j+1)
cout<<ta[i][j]<<"\t";
cout<<endl;
}
return 0;
}
VS2010上都显示可以执行了 为什么窗口显示错误呢  检查说是J变量有问题