for example, translates to CString CStringArray::GetAt( int <nIndex> ) const; and void SetAt( int <nIndex>, CObject* <newElement> ) translates to void SetAt( int <nIndex>, LPCTSTR <newElement> ) CStringArrayincorporates theIMPLEMENT_SERIALmacro to support serialization and dumping of its e...
int maxIndex=arrCString.GetUpperBound();//获得字符串数组中 最大下标; maxIndex=4 strTemp=arrCString.GetAt(1);// strTemp="2222" // this is important #ifdef _DEBUG afxDump.SetDepth( 1 ); afxDump << "Add example: " << &arrCString << "\n"; /* Output中输出的内容*** Add example:...
CStringArray vszExample; vszExample.Add(_T("除非你能完全记住C函数/C++库/MFC库/SDK里面每个类/函数的用法,")); vszExample.Add(_T("不然还是要装MSDN的")); vszExample.Add(_T("虽然我用VC好几年了,")); vszExample.Add(_T("但是我还是要经常用到它,")); vszExample.Add(_T("我想没有哪个用...
for example, translates toCString CStringArray::GetAt( int <nIndex> ) const; andvoid SetAt( int <nIndex>, CObject* <newElement> ) translates tovoid SetAt( int <nIndex>, LPCTSTR <newElement> ) CStringArray incorporates the IMPLEMENT_SERIAL macro to support serialization and dumping of its ...
for example, translates to CString CStringArray::GetAt( int <nIndex> ) const; and void SetAt( int <nIndex>, CObject* <newElement> ) translates to void SetAt( int <nIndex>, LPCTSTR <newElement> ) CStringArrayincorporates theIMPLEMENT_SERIALmacro to support serialization and dumping of its ...
A CString holds a single string. A CStringArray holds an array of strings. Here is where the copy constructor comes in: The CString can be assigned to a CString. For example, I can do this: CString a; CString b = a; // copy constructor ...
Here is where the copy constructor comes in: The CString can be assigned to a CString. For example, I can do this: CString a; CString b = a; // copy constructor A CStringArray can not be assigned to another CStringArray. Why? because the creator of class CStringArray decided that copying...
CStringArray vszExample; vszExample.Add(_T("除非你能完全记住C函数/C++库/MFC库/SDK里面每个类/函数的用法,")); vszExample.Add(_T("不然还是要装MSDN的")); vszExample.Add(_T("虽然我用VC好几年了,")); vszExample.Add(_T("但是我还是要经常用到它,")); ...
for example, translates to CString CStringArray::GetAt( int <nIndex> ) const; and void SetAt( int <nIndex>, CObject* <newElement> ) translates to void SetAt( int <nIndex>, LPCTSTR <newElement> ) Public Constructors NameDescription ...
for example, translates to CString CStringArray::GetAt( int <nIndex> ) const; and void SetAt( int <nIndex>, CObject* <newElement> ) translates to void SetAt( int <nIndex>, LPCTSTR <newElement> ) CStringArray incorporates the IMPLEMENT_SERIAL macro to support serialization and dumping of ...