Wha*_*sit 4 c c# c++ comments block-comments
有没有办法在C风格的块注释中包含*/?在这种情况下,将块注释更改为一系列行注释(//)不是一个选项.
以下是导致问题的评论类型的示例:
/**
* perl -pe 's/(?<=.{6}).*//g' : Limit to PID
*/
Run Code Online (Sandbox Code Playgroud)
Mar*_*som 24
通常评论不需要是文字的,所以这不会经常出现.
你可以将它全部包装在#if块中:
#if 0
whatever you want can go here, comments or not
#endif
Run Code Online (Sandbox Code Playgroud)