输入一个正数的数组后,输出一个数组的倒序
#include <iostream>
#include <string>
using namespace std;
int main()
{
string word;
cin >> word;
char temp;
int i,j;
for (i= 0;i<j;i++)
{
j= word.length()-1-i;
temp = word[i];
word[i] = word[j];
word[j] = temp;
}
cout << word << endl;
system("pause");
return 0;
}