class Client
{
private:
    char *firstname;
    char *name;
    int number;
    int year;
public:
    Client ();
    void setFirstName ();
    void setName ();
    void setNumber ();
    void setYearsInBank ();
    void showClientInfo ();
    ~Client ();
};
Client::Client ()
{
    this->firstname=new char [100];
    this->name=new char [100];
    this->number=this->year=0;
}
void Client::setFirstName ()
{
    cout<<"Firstname: ";
    cin>>this->firstname;
}
void Client::setName ()
{
    cout<<"Name: ";
    cin>>this->name;
}
void Client::setNumber ()
{
    static int _number=1;
    this->number=_number;
    _number++;
}
void Client::setYearsInBank ()
{
    this->year=rand()%12;
}
void Client::showClientInfo ()
{
    cout<<"--------------------------------"<<endl;
    cout<<"Firstname: ";
    cout<<this->firstname<<endl;
    cout<<"Name: ";
    cout<<this->name<<endl;
    cout<<"Number: ";
    cout<<this->number<<endl;
    cout<<"Years in bank: ";
    cout<<this->year<<endl;
}
Client::~Client ()
{
    delete this->firstname;
    delete this->name;
}
class Queue
{
private:
    Client obj;
    int *ptr;
    int maxSize;
    int currentSize;
public:
    Queue ();
    bool full();
    bool empty();
    int getSize ();
    void push ();
    void show();
    int pop();
    ~Queue ();
};
Queue::Queue()
{
    this->maxSize = 10;
    this->ptr = new int[this->maxSize];
    this->currentSize = 0;
}
bool Queue::full()
{
    return this->currentSize == this->maxSize;
}
bool Queue::empty()
{
    return this->currentSize == 0;
}
int Queue::getSize ()
{
    return this->currentSize;
}
Я  створив класс клієнт, наприклад в мене 5 клієнтів, я їх ввів, пізніше мені потрібно визначити хто з них довше років в банку і додати їх в чергу по пріорітету, я створив класс черга, і тепер не розумію як мені їх обєднати, як в чергу добавити цих клієнтів, чи потрібно тепер в черзі створювати поля Прізвище, Імя і так дальше, чи можна якось через вказівники це все зробити.