playfair.h

来自「1、对于凯撒密文」· C头文件 代码 · 共 32 行

H
32
字号
// Playfair.h: interface for the CPlayfair class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PLAYFAIR_H__9F4542E8_7CE1_4746_9E06_5FA05000A7AE__INCLUDED_)
#define AFX_PLAYFAIR_H__9F4542E8_7CE1_4746_9E06_5FA05000A7AE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Cipher.h"
#include <utility>
using namespace std;
class CPlayfair : public CCipher  
{
public:
//	pair <int,int> m_letterPosition[150];
	CString m_plainString;
	CString m_cipherString;
//	CString m_key;
//	void SetKey();
//	char grid[5][5];
	void Decipher(char grid[5][5],pair<int,int> m_letterPosition[150]);
	void Encipher(char grid[5][5] , pair <int,int> m_letterPosition[150]);
	CPlayfair();
	virtual ~CPlayfair();

};

#endif // !defined(AFX_PLAYFAIR_H__9F4542E8_7CE1_4746_9E06_5FA05000A7AE__INCLUDED_)

⌨️ 快捷键说明

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