VC++2010应用开发技术作者主编张晓民第07章Windows程序设计基础课件.pptVIP

  • 16
  • 0
  • 约1.41万字
  • 约 51页
  • 2016-12-25 发布于广东
  • 举报

VC++2010应用开发技术作者主编张晓民第07章Windows程序设计基础课件.ppt

4.CString GetAt 原型:TCHAR GetAt(int nIndex) const; 说明:返回字符串中指定索引号的字符。 SetAt 原型:void SetAt(int nIndex,TCHAR ch); 说明:设置字符串中指定索引位置的字符,与GetAt函数功能相反。 Compare 原型:int Compare(LPCTSTR lpsz) const; 说明:实现对两个字符串进行比较,区分大小写。 Mid 原型:CString Mid(int nFirst)const;throw(CMemoryException); CString Mid(int nFirst,int nCount) const;throw(CMemoryException); 说明:将字符串以nFirst为起始点抽取一个子字符串,参数nCount为抽取字符串长度。 4.CString Left 原型:CString Left(int nCount) const;throw(CMemoryException); 说明:抽取字符串左边个数为nCount的子字符串,若超过总长则返回整个字符串。 Right 原型:CString Right(int nCount) const;throw(CMemoryException); 说明:抽取字符串右边个数为nCount的子

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档