摘要: #include <iostream>#include <string>using namespace std;void SetStr(string &str){ int len=str.length(); char temp; for (int i=0;i<len/2;i++) {//把字符串的两边一一调换 temp=str[i]; str[i]=str[len-1-i]; str[len-1-i]=temp; }}int main(){ string a; cout<<"input"<<endl; cin&g 阅读全文
posted @ 2010-12-01 09:53 瓜蛋 阅读(1040) 评论(5) 推荐(0) 编辑