Demo entry 6646098

ModeArt

   

Submitted by 朱修宇 on Oct 14, 2017 at 13:23
Language: C++. Code size: 470 Bytes.

//const int maxSize = 50;
template<class T>
class Queue {
public:
	Queue(){}								//¹¹Ô캯Êý
	~Queue(){}								//Îö¹¹º¯Êý
	virtual bool EnQueue(const T & x) = 0;	//ÐÂÔªËØx½øÈë¶ÓÁÐ
	virtual bool DelQueue(T & x) = 0;		//¶ÓÍ·ÔªËسö¶ÓÁÐ
	virtual bool getFront(T & x) = 0;		//¶ÁÈ¡¶ÓÍ·ÔªËصÄÖµ
	virtual bool IsEmpty()const = 0;		//Åж϶ÓÁÐÊÇ·ñΪNULL
	virtual bool IsFull() const = 0;		//Åж϶ÓÁÐÊÇ·ñÒÑÂú
	virtual int getSize() const = 0;			//Çó¶ÓÁÐÔªËصĸöÊý
};

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).