Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
代码行数计数器 - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章


别人的一个项目:https://github.com/AlDanial/cloc

下载它的release版本中的exe文件,在cmd中打开它(因为它的界面会一闪而过),给他一个参数他就会开始统计。

比如:

D:\>cloc.exe D:\mycode.cpp

这样就会统计 D:\mycode.cpp 的代码行数

此外,还可以统计整个目录的代码行数,在参数里传目录即可。


需要注意的是,如果给它的是一个编码比较奇怪的文件,它就会忽视这个文件。


还可以下载这个版本:

链接: https://pan.baidu.com/s/13AhFy2usDoEWl_IlrRn9dA  提取码: j19j

这是我写了一个辅助器在里面的版本,用起来更方便。





返回首页


Copyright (C) 2018-2024 huidong