سلام با کد زیر میخوام آرایه رو چاپ کنم ولی هیچی چاپ نمیکنه.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=0,j=0;
char points [8][8] ={
{' ',' 1 ',' 2 ',' 3 ',' | ',' 4 ',' 5 ',' 6 '},
{' 1 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
{' 2 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
{' 3 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
{' -- ',' -- ',' -- ',' -- ',' ',' -- ',' -- ',' '},
{' 4 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
{' 5 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
{' 6 ',' . ',' . ',' . ',' | ',' . ',' . ',' . '},
};
for(i=0;i<8;i++)
{
for(j=0;j<8;j++)
printf("%c",points[i][j]);
j=0;
puts("");
}
return 0;
}