I am reading a file into a C++ program but I want to skip over comments listed in the file. Right now the program is trying to process the comments - which is incorrect.
I tried using double quotes but that also throws an error.
if(line!='#') //right here is where it's not supressing the comments...
processName = line;
tickCount = atoi(line.c_str());
cout << "[" << processName << " " << tickCount << "]" << endl;
// Create a new PCB object and assign to it the values just read in
PCB *p = new PCB();
p->name = processName;
p->tickCount = tickCount;
// Push the new PCB object on the Long Term Wait Queue