第07章节Windows程序设计基础.pptVIP

  • 1
  • 0
  • 约1.31万字
  • 约 51页
  • 2017-11-12 发布于未知
  • 举报
4.CString Left 原型:CString Left(int nCount) const;throw(CMemoryException); 说明:抽取字符串左边个数为nCount的子字符串,若超过总长则返回整个字符串。 Right 原型:CString Right(int nCount) const;throw(CMemoryException); 说明:抽取字符串右边个数为nCount的子字符串。若超过总长则返回整个字符串。 MakeUpper 原型:void MakeUpper(); 说明:将字符串中的字符全部大写。 4.CString MakeLower 原型:void MakeLower(); 说明:将字符串中的字符全部小写。 Replace 原型:int Replace(TCHAR chOld,TCHAR chNew); int Replace(LPCTSTR lpszOld,LPCTSTR lpszNew); 说明:将字符串中指定的字符替换为新的字符。 Remove 原型:int CString::Remove(TCHAR ch); 说明:将字符串中指定的字符删除。 Insert 原型:int Insert(int nIndex,TCHAR ch); throw(CMemoryException); int I

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档