[求助]如何将"HELLO"转换成"OLLEH"
我试了N次 依然不行 求各位指教
2006-02-09 07:46
2006-02-09 10:00

2006-02-09 10:26
2006-02-09 18:33

2006-02-10 17:14

2006-02-10 22:33

2006-02-11 13:09

2006-02-11 21:42
[CODE]#include <iostream>
using namespace std;
int main()
{
string a;
cin>>a;
cout<<a<<endl;
reverse(a.begin(), a.end());
cout<<a<<endl;
system("pause");
return 0;
}[/CODE]
关于异或和赋值的时间上的效率,能否说明一下?
[此贴子已经被作者于2006-2-11 22:25:51编辑过]

2006-02-11 22:25
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string a;
cin>>a;
cout<<a<<endl;
reverse(a.begin(), a.end());
cout<<a<<endl;
system(\"pause\");
return 0;
}

2006-02-11 22:42