message.cpp

来自「实现通信过程中的数据加密(AES, DES, SHA-256,SHA-384,S」· C++ 代码 · 共 43 行

CPP
43
字号
// Message.cpp: implementation of the CMessage class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
//#include "Client.h"
#include "Message.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMessage::CMessage()
{

}

CMessage::~CMessage()
{
}

void CMessage::Serialize(CArchive &ar)
{
	if(ar.IsStoring())
	{
		ar << strMsg;
		ar << strKey;
		ar << strSha;
	}
	else
	{
		ar >> strMsg;
		ar >> strKey;
		ar >> strSha;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?