正在加载图片...
6.转换函数 1) void MakeUpper() 将字符串中的所有小写字母转换为大写。 (2)void MakeLower() 将字符串中的所有大写字母转换为小写 (3) void MakeReverse() 反转字符串对象中所有字符的排列顺序。 (4) int Replace( tchar chold, TCHaR chNew int Replace( lpctstr lpszold, LPCtStR lpszNew (5) int Insert( int nIndex, TCHAR ch) int Insert( int nIndex, LPCTSTR pstr 函数从指定的位置,插入一个字符或字符串,插入位置由 nIndex参数指定,插入内容由ch或pstr指定,返回值为插入后新 字符串的长度6.转换函数 (1)void MakeUpper( ); 将字符串中的所有小写字母转换为大写。 (2)void MakeLower( ); 将字符串中的所有大写字母转换为小写。 (3)void MakeReverse( ); 反转字符串对象中所有字符的排列顺序。 (4)int Replace( TCHAR chOld, TCHAR chNew ); int Replace( LPCTSTR lpszOld, LPCTSTR lpszNew ); (5)int Insert( int nIndex, TCHAR ch ) int Insert( int nIndex, LPCTSTR pstr ) 函数从指定的位置,插入一个字符或字符串,插入位置由 nIndex参数指定,插入内容由ch或pstr指定,返回值为插入后新 字符串的长度
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有