给定程序中,函数fun的功能是:求出形参ss所指字符串数组中最长字符串的长度,其余字符串左边用字符*补齐,使其与最长的字符串等长。字符串数组中共有M个字符串,且串长小于N。()#include()#include()#define()M()5()#define()N()20()void()fun(char()()(*ss)[N])(){()()int()()i,()j,()k=0,()n,()m,()len;()for(i=0;()i(){()()len=strlen(ss[i]);()if(i==0)()n=len;()if(len>n)(){()n=len;()()k=i;()}()}()for(i=0;()i()if()(i!=k)(){()m=n;()len=strlen(ss[i]);()for(j=len;()j>=0;()j--)()ss[i][m--]=ss[i][j];()for(j=0;()j()/**********found**********/()____________='*';()}()}()main()(){()()char()()ss[M][N]={"shanghai","guangzhou","beijing","tianjing","cchA.()ss[i]()B.()ss[j][i]()C.()ss[j]()D.()ss[i][j]
给定程序中,函数fun的功能是:求出形参ss所指字符串数组中最长字符串的长度,其余字符串左边用字符*补齐,使其与最长的字符串等长。字符串数组中共有M个字符串,且串长小于N。()#include()#include()#define()M()5()#define()N()20()void()fun(char()()(*ss)[N])(){()()int()()i,()j,()k=0,()n,()m,()len;()for(i=0;()i(){()()len=strlen(ss[i]);()if(i==0)()n=len;()if(len>n)(){()n=len;()()k=i;()}()}()for(i=0;()i()if()(i!=k)(){()m=n;()len=strlen(ss[i]);()for(j=len;()j>=0;()j--)()ss[i][m--]=ss[i][j];()for(j=0;()j()/**********found**********/()____________='*';()}()}()main()(){()()char()()ss[M][N]={"shanghai","guangzhou","beijing","tianjing","cchA.()ss[i]()B.()ss[j][i]()C.()ss[j]()D.()ss[i][j]
1