[译]MS VC ++ 6.0项目中的行数
By robot-v1.0
本文链接 https://www.kyfws.com/applications/counting-lines-in-a-ms-vc-6-0-project-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 634 个词 阅读量 0[译]MS VC ++ 6.0项目中的行数
原文地址:https://www.codeproject.com/Articles/1286/Counting-Lines-in-a-MS-VC-6-0-project
原文作者:_declspec
译文由本站 robot-v1.0 翻译
前言
A program that counts the lines (source, comments, blank) in every file included in a MS VC++ 6.0 project
该程序对MS VC ++ 6.0项目中包含的每个文件中的行(源,注释,空白)进行计数
介绍(Introduction)
有没有想过一个月(或者一年!)您从事的项目有多少行?嗯,我们为您做了这件事:)(Ever wondered how many lines a project you have worked on for a month (or maybe for a year!)?Well, we did this for you :))
开发此程序(LineCounter)的目的仅在于:计算行数!(This program (LineCounter) was developed with one purpose only: to count your lines!)
该程序能够计算源代码,注释(两种样式:"//comment"和"/* comment */")以及空白行.它在几个编辑框中显示结果,并具有一个预览窗口(右键单击列表).(*The program is able to count source code, comments (both styles: “// comment” and “/* comment */"), and blank lines. It shows the results in a couple of editboxes, and has a preview window (right click on the list).*)
该程序将打开项目文件(.dsp),并将其通过解析代码抛出.解析完成后,将逐步浏览项目文件列表并计算行数.(The program opens the project file (.dsp) and throws it through the parsing code. After parsing is done the list of project files is steped-by-step and lines are counted.)
而已!源代码很容易解释,所以我想您可以管理.(That’s it! The source code is pretty self explanatory, so I guess you’ll manage.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows MFC Visual-Studio Dev 新闻 翻译