数组长这样
#include<stdio.h>
void main()
{
int x,y,i;
char a[][10]={
{"*****"},
{" **$**"},
{" *****"},
{" *****"},
{" *****"}
};
for(x=0;x<5;x++)
{
for(y=0;y<10;y++)
printf("%c",a[x][y]);
printf("\n");
}
while(1);
}
如何判定是否字符“$",有就输出其在二维数组的位置【如[1][0]】,没有就提示不存在