1.编写一个函数void ReverseStr(char *s), 函数的功能是把字符串中的内容逆置。
1.编写一个函数void ReverseStr(char *s), 函数的功能是把字符串中的内容逆置。
日期:2010-11-30 11:16:39 人气:1
ReverseStr(char *s)
{
char t1,t2;
for(i=0;i<4;i++)
{t1=s[i];t2=s[6-i];s[i]=t1;s[6-i]=t2;}
}
1.编写一个函数void ReverseStr(char *s), 函数的功能是把字符串中的内容逆置。