在你的程序基础上作了修改,用字符串形式给二维数组初始化,作了简化。程序与运行结果如下:
#include
int
main()
{
char
a[9][5]={"*****","*****","*****","*****","*****","*****","*****","*****","*****"};
int
i,j;
for
(i=0;i<9;i++)
{
for
(j=0;j<5;j++)
printf("%c",a[i][j]);
printf("\n");
}
return
0;
}