So I have a class called PCB:
class PCB
{
private:
int PID;
string filename;
int memStart;
string cdrw;
int filelength;
public:
PCB();
PCB(int, string, int, string, int);
virtual ~PCB();
void getParam();
};
And I have a vector of queues: vector<queue<PCB>> printer;
How would I access the first element of the first queue in the vector? How would I use my class functions? Would it look like printer[0].getParam?