Nested Comments in C++

后端 未结 4 1308
南旧
南旧 2020-12-31 17:43

This should be a common problem and possibly similar to some question here but i am looking foe the best way to comment out multiple lines (rather methods ) in C++ which hav

4条回答
  •  无人及你
    2020-12-31 18:49

    Use whatever means your editor provides to add // a the beginning of all lines.

    For example in Vim you can mark the lines as a visual block and then insert at the beginning of all lines with I//. In Visual Studio you can use the CTRL-K-C shortcut to comment code blocks.

提交回复
热议问题