I have a class below
class CPU
{
public:
void setPID (int a)
{
PID = a;
}
int retrievePID()
{
return PID;
}
private:
int PID;
};
And i am curious if you can create a queue into this class?
I am trying to queue in a value into the PID
I setup my queue below.
queue<CPU> CPUQueue;
But im not sure how to queue into the value PID?
How does this work i am very confused.