我认为printf("%c",a[i][j]);后的 j++;及i++;要去掉,另外fscanf(fp,"%c",&a[i][j]);改为fscanf(fp," %c",&a[i][j]);即" %c“改成"(空格)%c"