lottorydata.h

来自「完成抽奖的基本功能。可以载入文本文件」· C头文件 代码 · 共 47 行

H
47
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?