http://qs321.pair.com?node_id=573719


in reply to Re: how do I print content of a cpp file without cpp comments?
in thread how do I print content of a cpp file without cpp comments?

I came to C++ from a C background, and thus I often wrote code as follows:

/* This does something cool */ do_something_cool(); /* This doesn't */ //....

Which is to point out that your current example has a subtle bug wherein it appears you'll drop all of the text in my example, rather than just the 3 lines of comments.

Still, I'm sure jsmith can work on that.

All the best,

jarich