求教大师C语言基础题。。

2025-02-27 01:53:10
推荐回答(3个)
回答1:

ti(int m,int n,int *sum,int *zero)
{ int a[m][n],i,j;
*sum=0;*zero=0;
for(i=0;i for(j=0;j if(a[i][j]!=0) *sum=*sum+a[i][j];
else *zero++;
return;
}

回答2:

if Len(suser)==0 { Goback } else if not(IsValidUserName(suser)) { Goback } if Len(scontent)==0 Goback if Len(semail)==0 and Len(

回答3:

int tj(int *a)
{
int i=0,j,sum=0,k=0;
while(*a!='\0') i++;
for(j=0;j { sum+=*a++;if(*a==0) k++;
}
return ;

}