Code:
// you can replace the code in the function printmatrix(); wit the following
// to get the axis.

void printmatrix(char msweep[][12],int r,char user_chart[12][12])
{
    
int i,j,k;    
 
 printf(" ");
 
for(k=1;k<12;k++) 
 printf("%d ",k);
  
  printf("\n");


 for(i=1;i<r;i++)
  {
   printf("%d",i);

   for(j=1;j<12;j++) //printing 1 to 11    
    {
     printf("%c ",user_chart[i][j]);//to refer to mines use msweep[i][j]    
    }   
   
   printf("\n");
  }

return;
}

Last edited by shabbir; 18Jun2011 at 12:49.. Reason: Code blocks