谁知道用什么函数获取CArray类动态数组的长度?

来源:百度知道 编辑:UC知道 时间:2024/06/27 12:13:45
谁知道在MFC中用什么函数获取CArray类动态数组的长度?既它包含的元素个数.我是新手

CArray::GetSize
int GetSize( ) const;

Remarks
Returns the size of the array. Since indexes are zero-based, the size is 1 greater than the largest index.

建议,装个MSDN,每个在MOCROSOFT WINDOWS上编程的人都要安装,并使用好!