“`”

【参考答案】
void AntitoneValue(cha r* father, char* child)
{
int i ;
char source[100];
int j = 0;
while(father[j]) //放入source ,[j] 为长度
{
source[j] = father[j];
j++;
if(j > 99)
return;
}
source[j] = '\0';
for(i=0; i<j; i++)
child[i] = source[j-i-1]; // 反序
child[i] = '\0';
}

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.