www.pudn.com > compressor.zip > chNode.h


#ifndef chNode_H 
#define chNode_H 
#include  
#include"chNode.h" 
 
struct chNode 
{ 
	char ch; 
	int fre; 
 
	chNode(char item) 
	{ 
		ch = item; 
		fre=0; 
	} 
 
	char GetCh(){return ch;} 
	int GetFreq(){return fre;} 
 
	chNode(){fre=0;} 
 
	bool operator!=(const chNode& rhs) 
	{ 
		return rhs.ch!=ch ; 
	} 
 
	chNode& operator ++ (int) 
	{ 
		fre++; 
		return *this; 
	} 
 
	friend ostream& operator<<(ostream& os, 
		const chNode& node) 
	{ 
		os<