seghash.h

来自「此代码运行于visual c++ 6.0的环境下」· C头文件 代码 · 共 44 行

H
44
字号
// SegHash.h: interface for the CSegHash class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SEGHASH_H__72416143_1837_447C_BA9F_601B0B3B919E__INCLUDED_)
#define AFX_SEGHASH_H__72416143_1837_447C_BA9F_601B0B3B919E__INCLUDED_

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



#include <iostream>
using std::cout;
using std::endl;
struct node
{
	char key[50];
	node * link;
};

class CSegHash
{
public:
	int M;
	node** N;
	void clear();
	CSegHash(int );
	CSegHash();
	void SetLength(int length);
	void Insert(const char*);
	bool Find(const char*);
	int ELFhash(const char* key);
	virtual ~CSegHash();
    //int M;
	//node** N;
};




#endif // !defined(AFX_SEGHASH_H__72416143_1837_447C_BA9F_601B0B3B919E__INCLUDED_)

⌨️ 快捷键说明

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