//将一个字符数组倒过来asdf变为 fdsa
#include <iostream>
#include <cstring>
using namespace std;
void dao_order(char *n)
{
char tmp[20] = {0};
cout << strlen(n) << endl;
int i;
int j=0;
for(i = strlen(n)-1;i >=0 ; i--)
{
tmp[j] = n[i];
j++;
}
stpcpy(n,tmp);
cout << "n: " << n << endl;
}
int main()
{
char n[20] = {0};
cout << "please input : " << endl;
cin >> n;
dao_order(n);
return 0;
}