Oh, c'mon, jonsca
You will need to either tokenize the lines and get rid of anything after // or between /* */
-or-
You can write a finite state machine similar to the ones that a compiler would use...-or-
You can use a regex library...
He said
Totally new to C++, so please forgive me...
He can't even find a double quote in the line he's read, how is he going to add a regex library, or even know what a state machine is? I myself never heard of a state machine until my girlfriend was getting her masters.
Know your audience...
Sheesh! :icon_wink: