void enqueue(const string& name, const int age)
{
node* newnode = new node(); // at this place
newnode->set(name, age);
newnode->setnext(NULL);
rear->setnext(newnode);
rear = newnode;
size++;
}