| 字词 | CDumpContext::operator 3c3c |
| 释义 | CDumpContext::operator << CDumpContext& operator <<(const CObject* pOb); throw(CFileException); CDumpContext& operator <<(const CObject* Ob); throw(CFileException); CDumpContext& operator <<(LPCTSTR lpsz); throw(CFileException); CDumpContext& operator <<(const void* lp); throw(CFileException); CDumpContext& operator <<(BYTE by); throw(CFileException); CDumpContext& operator <<(WORD w); throw(CFileException); CDumpContext& operator <<(DWORD dw); throw(CFileException); CDumpContext& operator <<(int n); throw(CFileException); CDumpContext& operator <<(double d); throw(CFileException); CDumpContext& operator <<(float f); throw(CFileException); CDumpContext& operator <<(LONG l); throw(CFileException); CDumpContext& operator <<(UNIT u); throw(CFileException); CDumpContext& operator <<(LPCWSTR lpsz); throw(CFileException); CDumpContext& operator <<(LPCSTR lpsz); throw(CFileException); 返回值: 一个CDumpContext参考。使用返回值,可以在源代码的单行中写入多个插入点。 说明: 输出指定数据到堆上下文中。 CObject指针的装载插入操作符也适合于大多数原始类型。字符指针会产生字符串堆,void的指针将产生堆十六进制的地址。 如果在类实现过程中使用了IMPLEMTNT_DYNAMIC或IMPLEMTNT_SERIAL宏,CObject:: Dump将打印CObject派生类的名字,否则,它将打印CObject 。如果覆盖了Dump函数,那么就可以提供一个更有意义的对象内容输出,而不是一个十六进制的堆。 示例: //example for CDumpContext::operator << extern CObList li; CString s = "test"; int i = 7; long lo = 1000000000L; LONGLONG lolo = 12345678901234i64; afxDump << "list=" << &li << "string=" << s << "int=" << i << "long=" << lo << "LONGLONG=" << lolo << "\"; |
| 随便看 |
|
计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。