📄 lottorydata.h
字号:
// LottoryData.h: interface for the LottoryData class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LOTTORYDATA_H__D1F78FEF_B619_4929_B9EA_F1BD7C592C3D__INCLUDED_)
#define AFX_LOTTORYDATA_H__D1F78FEF_B619_4929_B9EA_F1BD7C592C3D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// 抽奖数据结构体数组
struct Node
{
// 数据id
int num;
// 数据内容
CString content;
Node *next;
};
typedef struct Node LottoryDataNode;
class LottoryData
{
public:
LottoryDataNode* delNode(int num);
LottoryDataNode* addNode(CString *string);
LottoryData();
virtual ~LottoryData();
public:
// 链表头
LottoryDataNode* m_pNodeChainHead;
// 前驱节点
LottoryDataNode* m_pNodeChainVan;
// 当前节点
LottoryDataNode* m_pNodeChainCur;
// 临时节点
LottoryDataNode* m_pNodeChainTemp;
// 节点id
int m_nNodeId;
// 链表长度
int m_nChainLength;
};
#endif // !defined(AFX_LOTTORYDATA_H__D1F78FEF_B619_4929_B9EA_F1BD7C592C3D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -