1
已采纳
0
定义n,max;
再定义一个字符数组;
然后:
for(int i=1;i<=n;i++)
{
cin>>字符数组名称;
if(max<strlen(字符数组名称))
max=strlen(字符数组名称);
}
如有疑问在评论区问我
0
0
0