⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tablearray.h

📁 DES 实现 包括 纯DES 3DES 和 CBC
💻 H
字号:
// TableArray.h: interface for the CTableArray class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TABLEARRAY_H__B36A54D7_7118_4872_A417_ACA02FB9D86D__INCLUDED_)
#define AFX_TABLEARRAY_H__B36A54D7_7118_4872_A417_ACA02FB9D86D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
template <class T>
class CTableArray
{
public:
	inline Attach( T p[],int r,int c){ m_pdata=p;row=r;col=c;}
	CTableArray( T p[],int r,int c){ m_pdata=p;row=r;col=c;}

	inline	CTableArray(int r ,int c){
		m_pdata=new T[c*r/8];
		m_pdata[0]=0;m_pdata[1]=0;
		col=c;row=r;}

	CTableArray(){};
	~CTableArray(){delete []m_pdata;}
	void Free(){delete []m_pdata;}
	T & operator[](int index){ return m_pdata[index];}
	int col,row;
private:
	T *m_pdata;
};
#endif // !defined(AFX_TABLEARRAY_H__B36A54D7_7118_4872_A417_ACA02FB9D86D__INCLUDED_)

⌨️ 快捷键说明

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