cmtconvr.txt
来自「国外网站上的一些精典的C程序」· 文本 代码 · 共 22 行
TXT
22 行
This is the new C++ release of my comment utilities, a C version of which wasalready in a previous SNIPPETS release. There is not much documentation -- Ihope the code speaks for itself.The "heart" of the program is implemented as a finite state machine which parses the source files and also is an abstract base class for all the utilities.There are four utilities: CMTCONVR - comment converter: converts C++ comments to C comments. CMTCOUNT - comment counter: checks the balance of /* */ and counts commented lines. CMTREMOV - comment remover: removes comments from a source file (output file contains plain code) CMTXTRAC - comment extractor: extracts comments from source file (output file contains all comments)The package contains also a test file, CMTTESTS.C which has a bunch ofdifferent styles of commenting -- some of which are quite perverse :-) // Albert email: jla@to.icl.fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?