📄 i_c.h
字号:
#include "iostream.h"
#include "fstream.h"
#include "stdlib.h"
#include "string.h"
#define NULL 0
class Node
{
char *ch;//存放指令字
int count;//计数
Node *next;//指出下一指令字的结点
public:
Node();
char* pop_ch() {return ch;}//返回结点的ch值
void set_ch(char *c);//将c的内容赋予ch
void inc_count() {count++;}//计数增1
int prt_count() {return count;}//返回计数值
void set_next(Node *c) {next=c;}//添加结点
Node* pop_next() {return next;} //返回下一结点
~Node() {delete []ch;}
};
Node::Node()
{
ch=new char[4];
count=1;
next=NULL;
}
void Node::set_ch(char *c)
{
int i;
for(i=0;i<4;i++) ch[i]=c[i];
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -