http://www.cppblog.com/longhr/archive/2008/10/23/64821.aspx
#include <IOSTREAM>
using namespace std;
int main()
{
char src[]="hello";
int len =strlen(src);
char temp;
for (int i=0;i<len/2;i++)
{
temp=src[i];
src[i]=src[len-i-1];
src[len-i-1]=temp;
}
cout <<src<<endl;
return 0;
}