explicit,和构造函数一起使用. explicit constructor指明构造函数只能显示使用,目的是为了防止不必要的隐式转化. explicit 它与 virtual、inline 合称为“函数限定符”。它只适用于构造函数。若一个类拥有只带一个参数的构造
//解释服务器地址 DWORD CTCPSocketService::TranslateAddr(LPCTSTR pszServerAddr) { //转化地址 DWORD dwServerIP = 
数组在使用前最好初始化 BYTE temp[10]; memset(temp,0,sizeof(temp)); //or ZeroMemory(temp,sizeof(temp)); //ZeroMemory() ZeroMemory宏用0来填充一块内存区域。
//Sends a string to the debugger for display. void WINAPI OutputDebugString( __in_opt &nbs
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号