Code:
while(getline(infile,lines))
{
if(lines.empty())
{
continue;
}
if(lines.find("//") == true)
{
continue;
}
++linecount;
I got the counter to skip spaces flawlessly, but skipping the comments in the line count isn't going very well.
Any help is appreciated!