for(int i=1;i<=n;i++) for(int j=1;j<=m;j++){ mp[i][j]='\n'; while(mp[i][j]!='@'&&mp[i][j]!='#'){ mp[i][j]=getchar(); } }
其它的想到再更