#include<iostream>
using namespace std;
void daoxu(char *p)
{
int i,j,len;
char *q=NULL,t;
for(len=0;*(p+len)!=0;len++)
q=p+len;
while(p<q)
{
t=*p;*p=*q;*q=t;
p++;q--;
}
}
int main()
{
char s[80];
cin.getline(s,80);
daoxu(s);
cout<<"倒序后:";
cout<<s<<endl;
return 0;
}
09-17
980
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-14
9503
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)