On line 47 and 49 use line instead of filename, just for the other two count methods.
And yes, double quotes around class and ::, remember, characters get single quotes, strings get double quotes.
void LOC::countLines(){
ifstream myfile(line.c_str());
while (getline(myfile, line)){
//ignore lines that are either blank or /
if(filename.empty() || (filename.find("//")==0)){
continue;
}
//increment lines of number count
numLines++;
}
myfile.close();