Re: Shortcut for Commenting out a large block of code
Yeah - use the /*...*/ way of commenting. Everything between /* and */ is commented out. Note that this way of commenting is not recursive so /*../*..*/..*/ cannot be used - but it can include //comments
/*These are various lines of code
I want to comment out
It is tedious to keep using //
so I use the other way instead*/
Re: Shortcut for Commenting out a large block of code
Change to a newer environment. Dev C++ hasn't been maintained for a long time. In the free MSVC Express for instance you just mark the area and press Ctrl+K,C to comment and Ctrl+K,U to uncomment. I bet other modern environments has something similar.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks