#include <iostream>
using namespace std;
template <class DataType>
struct Node{
DataType a;
Node<DataType> * next;
};
template <class DataType>
class LinkQueue{
public:
LinkQueue();
~LinkQueue();
void add();
bool del();
private:
Node<DataType> * end, * q;
};
template <class DataType>
LinkQueue <DataType>::LinkQueue(){
this.end->next = end;
this.q->next = end;
}
template <class DataType>
void LinkQueue <DataType>::add(){ //入队
Node<DataType> * p = new Node<DataType>();
cin>>p.a;
q->next = p;
p->next = end;
q = p;
}
template <class DataType>
bool LinkQueue<DataType>::del(){ //出队
if(end->next == end)
return false;
else{
Node<DataType> * s = new Node<DataType>();
s = end->next;
end->next = end->next->next;
delete(s);
}
return true;
}
int main(){
return 0;
}