I'm using getline() to open a .cpp file.
getline(theFile, fileData);
I'm wondering if there is any way to have getline() avoid grabbing c++ comments (/*, */
and //
)?
So far, trying something like this doesn't quite work.
if (fileData[i] == '/*')