关于数组的
****
*****
*******
#include<stdio.h>
main()
{
int i,j;
char picture[4][7]
printf("The picture is:\n");
picture[4][7] ={{' ',' ',' ','*'},{' ',' ','*','*','*',},{' ','*','*','*','*','*'},{'*','*','*','*','*','*','*'}};
for(i=0;i<=3;i++)
{
for(j=0;j<=6;j++)
printf("%c",picture[i][j]);
printf("\n");
}
getch();
}
编译时定义数组出问题了