strrev——串的倒轉(zhuǎn)
函數(shù)名: strrev
功 能: 串倒轉(zhuǎn)
用 法: char *strrev(char *str);
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
///forward最好是數(shù)組,否則出錯(cuò)。
char forward[7] = "string";
cout<<"Before strrev():"<<forward<<endl;
strrev(forward);
cout<<"After strrev():"<<forward<<endl;
return 0;
}

posted on 2011-11-22 21:39 More study needed. 閱讀(228) 評(píng)論(0) 收藏 舉報(bào)
浙公網(wǎng)安備 33010602011771號(hào)