📄 friend.cpp
字号:
// Friend.cpp: implementation of the CFriend class.
//
//////////////////////////////////////////////////////////////////////
#include "AllMsg.h"
#include "Friend.h"
#include "User.h"
MYHEAP_IMPLEMENTATION(CFriend,s_heap)
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CFriend::CFriend()
{
}
//////////////////////////////////////////////////////////////////////
CFriend::~CFriend()
{
}
//////////////////////////////////////////////////////////////////////
CFriend* CFriend::CreateNewFriend(const FriendInfoStruct* pInfo)
{
CHECKF(pInfo);
CFriendPtr pFriend = CFriend::CreateNew();
if(pFriend)
{
memcpy(&pFriend->m_Info, pInfo, sizeof(FriendInfoStruct));
}
return pFriend;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -