返回的是引用还是指针?
解决方案 »
- ConnectionPtr 和 RecordsetPtr
- 懂DEPHI的进来帮忙翻译成C++
- setwindowshookex不稳定的问题(高分)
- 怎样用VC实现一个从数据库倒出数据的程序?
- 请问AfxBeginThread函数的回调函数可以是非静态成员函数吗?谢谢!
- STL::string有像MFC::CString中的Format()函数吗?
- 问题解决请 WindsonZhL(风之子),ylredsun(我不聪明),icenl(成冈) 进来另分
- c语言指针问题??
- 基于对话框的MFC程序中,OnPaint()函数里面的语句起什么作用?
- 为什么MFC程序无法退出
- VS2005工程转到VS2010后MFCEditBrowse控件有问题
- 关于lParam转换成CString类型,急求!
Gets the CObject pointer that represents the head element of this list.CObject*& GetHead( );
const CObject*& GetHead( ) const;
Return ValueIf the list is accessed through a pointer to a const CObList, then GetHead returns a CObject pointer. This allows the function to be used only on the right side of an assignment statement and thus protects the list from modification. If the list is accessed directly or through a pointer to a CObList, then GetHead returns a reference to a CObject pointer. This allows the function to be used on either side of an assignment statement and thus allows the list entries to be modified.
下句自己翻译吧!
void*& 这个东西是指针呢还是引用呢,还是什么呢?
我见过返回void *
也见过返回int &
还没见过返回void* &的。
我知道了,这样写就很清楚了(void*) &
返回的是一个指针的引用。