⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 output.h

📁 手机选中奖号器
💻 H
字号:
// Output.h: interface for the Output class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_OUTPUT_H__3A5BC2CA_8282_452C_9656_CCE5236C52A3__INCLUDED_)
#define AFX_OUTPUT_H__3A5BC2CA_8282_452C_9656_CCE5236C52A3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class COutputItem
{
public:
	COutputItem () { city = phone = 0;}
	unsigned int city;
	unsigned int phone;
};

typedef CTypedPtrList<CPtrList, COutputItem*> COutputList;

class Output  
{
public:
	Output();
	virtual ~Output();
    void Add(unsigned int lcode,unsigned int phone)
	{
		COutputItem *p =  new COutputItem;
		p->city = lcode;
		p->phone = phone;
        m_output.AddTail(p);
	}
    void Del(int index)
	{
        POSITION  p = m_output.FindIndex(index);
		if ( p!= NULL )
		{
			COutputItem *d = m_output.GetAt(p);
			m_output.RemoveAt ( p );
			delete d;
		}
	}

	COutputItem * At(int index )
	{
		POSITION  p = m_output.FindIndex(index);
		if ( p != NULL )
		{
			return m_output.GetAt(p);
		}
		else
		{
			return NULL;
		}
	}
	void RemoveAll();
	int  GetSize() { return m_output.GetCount();}
	COutputList m_output;
};

#endif // !defined(AFX_OUTPUT_H__3A5BC2CA_8282_452C_9656_CCE5236C52A3__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -