ok i have i want to summarize only the first collum
int counter=1;
int totalvertical=0;
int i=7,k=4;
int array[i][k]={random values};
for (int x=1;x<7;x++)
{
for (int y=0;y<4;y++)
{
cout<<"["<<x<<"]["<<y<<"]="<<array[i][j]<<" ";
totalvertical=array[counter][0];
cout<<totalvertical;
}
counter++;
cout<<endl;
}
line 12 prints me normaly what is at array[1][0] then array[2][0] then array[3][0] etc but if i change line 12 to:
totalvertical+=array[counter][0];
doesnt summarize them,why?