資源簡(jiǎn)介
局域網(wǎng) 黑白棋 源碼程序 MFC
代碼片段和文件信息
#include?“StdAfx.h“
#include?“CbaseInfo.h“
CbaseInfo::CbaseInfo(void)
{
}
CbaseInfo::~CbaseInfo(void)
{
}
CProtocol::CProtocol(const?CProtocol?&pro)
{
if(this?!=?&pro)
{
m_stringLen?=?pro.m_stringLen;
m_action?=?pro.m_action;
m_x?=?pro.m_x;
m_y?=?pro.m_y;
memset(m_string0MAX_RECEVIECHAR_LEN);
if(?pro.m_stringLen?>?0?&&?pro.m_stringLen? strcpy(m_stringpro.m_string);
}
}
//CProtocol?&operator?=(const?CProtocol?&pro);
CProtocol?&CProtocol::operator?=(const?CProtocol?&pro)
{
if(this?!=?&pro)
{
m_stringLen?=?pro.m_stringLen;
m_action?=?pro.m_action;
m_x?=?pro.m_x;
m_y?=?pro.m_y;
memset(m_string0MAX_RECEVIECHAR_LEN);
if(?pro.m_stringLen?>?0?&&?pro.m_stringLen? strcpy(
評(píng)論
共有 條評(píng)論