在输入菱形出错 希望高手们指点指点 谢谢
在输入菱形出错 希望高手们指点指点 谢谢#include<stdio.h>
void main()
{
char diamond[ ][5]={{'','','*'},{'','*','','*'},{'*','','','','*'},{'','','*'},{'','*','','*'}};
int i,j;
for (i=0;i<5;i++)
{
for(j=0;j<5;j++)
printf("%c",diamond[i][j]);
printf("\n");
}
}
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
F:\myvc\test17\1.c(4) : error C2137: empty character constant
Error executing cl.exe.
test17.exe - 11 error(s), 0 warning(s)
前面是我写的程序后面是报错!
用VC编的