Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: how do I print content of a cpp file without cpp comments?

by jarich (Curate)
on Sep 19, 2006 at 13:45 UTC ( #573719=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://573719]
help
Chatterbox?
[holli]: oh jesus, oh boy jesus, my stomach
[holli]: i got super stoned last night, had a large pizza, half an apple pie, two oranges, a banana, and half a bar of chocolate
[holli]: oh and a handful of gummy bears
[erix]: "macht die Kleine froh und die grosse ebenso!"
[erix]: (or something like that)
[holli]: you do know i'm a guy, right?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-11-22 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?