stack.h
来自「linux下的一个分组遗传算法」· C头文件 代码 · 共 46 行
H
46 行
//// stack.h - general stack.//// author: J.I.v.Hemert// last updated: 29-09-1997//// This file contains the class StackC. It's a general push and pop// stack. The data it stores is defined by the typedef StackT.//#ifndef STACK_H#define STACK_H#include <stddef.h>#include <malloc.h>typedef int StackT;typedef struct InternalStackS { StackT data; struct InternalStackS * next;} InternalStackT;typedef InternalStackT * InternalStackP;class StackC {public: StackC (); void Push (StackT data); StackT Pop (); StackT Look (); bool Empty (); ~StackC ();private: InternalStackP top;};#endif// eof stack.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?