/*我用c++做一下,你可以把输入输出自己转化一下*/#include#defineMaxSize100intdata[MaxSize][MaxSize];voidfunc(charstr[],intn)//str是字符串,n是串长度inti,j;for(i=0;iwhile(str[j]!='