VC6++教程实例(PPT)第7章.pptVIP

  • 15
  • 0
  • 约2.62万字
  • 约 70页
  • 2016-12-03 发布于河南
  • 举报
VC6教程实例(PPT)第7章

第7章 MFC通用类 7.1 数组类 学习目标 1.了解MFC中的数组类及其常用成员函数。 2.利用MFC中的数组类处理数据。 CByteArray: CDWordArray: CPtrArray: CUIntArray: CWordArray: CStringArray: MFC数组类的常用成员函数 1.int Add( ARG_TYPE newElement ); throw( CMemoryException ); 2.TYPE ElementAt( int nIndex ); 3.void FreeExtra( ); 4.TYPE GetAt( int nIndex ) const 5.int GetSize( ) const; 6.int GetUpperBound( ) const; 7.(1)void InsertAt( int nIndex, ARG_TYPE newElement, int nCount = 1 ); throw( CMemoryException ); (2)void InsertAt( int nStartIndex, CArray* pNewArray ); throw( CMemoryException ); 8.void RemoveAll( ); 9.void SetAt( int n

文档评论(0)

1亿VIP精品文档

相关文档