Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[Eily]: hello people \o/
[karlgoethebier]: manpages..
[Eily]: and non-people and NodeReaper
[Discipulus]: you so kid to greet non people..;=)
Discipulus kind not kid..
[Corion]: The bots bow in response
[Discipulus]: so karlgoethebier, what this idiom is and where i can read about it? i tried to deparse and gives error..;=(
[karlgoethebier]: Eily: non-people == persone non grata?
[Your Mother]: Corion: I have lost the link to the pmdev guide(s). Do you have that handy?
[karlgoethebier]: Discipulus: see per lop please how to avoid the classic <c>perl dangerous.pl 'rm -rfv *|'</>

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-07-21 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.