📄 chnode.h
字号:
#ifndef chNode_H
#define chNode_H
#include <iostream.h>
#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<<node.ch<<" "<<"freq"<<" "<<node.fre;
return os;
}
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -