标签:gravity eve 技术分享 mod art har please sso ++
比方将"vpoet" 变为“teopv”
#include <iostream> using namespace std; int main() { char Before_Str[100]={0}; cout<<"******************************vpoet*********************************\n"; cout<<"Please input the String you want to reverse:"; cin>>Before_Str; char Ch_Temp; int Len=strlen(Before_Str); for(int i=0;i<Len/2;i++) { Ch_Temp=Before_Str[i]; Before_Str[i]=Before_Str[Len-i-1]; Before_Str[Len-i-1]=Ch_Temp; } cout<<"After reverse:"<<Before_Str<<endl; return 0; }
标签:gravity eve 技术分享 mod art har please sso ++
原文地址:http://www.cnblogs.com/slgkaifa/p/7341057.html