计算除注释之外的程序行 [英] Counting program lines except comments
问题描述
除了评论之外,还有什么工具可以计算C程序行吗?
谢谢,
======== =============================
Alex Vinokur
mailto:al ****@connect.to
http:// mathforum。 org / library / view / 10978.html
news://news.gmane.org/gmane.comp.lang.c++.perfometer
================ =====================
Alex Vinokur< al****@bigfoot.com>潦草地写道:是否有任何工具可以计算除评论之外的C程序行?
尝试在此处发布的评论剥离程序,以及在
结果上使用wc。
-
/ - Joona Palaste(pa ***** @ cc .helsinki.fi)-------------芬兰-------- \
\-- http://www.helsinki.fi/~palaste -------------- -------规则! -------- /
我们是女性。我们有双重标准可以实现。
- Ally McBeal
Alex Vinokur写道:
是否有任何工具可以计算除评论之外的C程序行?
这是comp.lang.c中的问题18.1。经常>
问答(FAQ)列表
http://www.eskimo.com/~scs/C-faq/top.html
......和我''我震惊了!震惊!要知道常规
表现得像个新手并且没能先查看常见问题解答。
-
呃********* @ sun.com
< blockquote>
2003年11月18日下午1:26,Eric Sosman写道:
Alex Vinokur写道:
是否有任何工具可以计算除评论之外的C程序行?
这是comp.lang.c中的问题18.1常见问题(FAQ)列表
常见问题并没有充分回答这个具体问题(正如常见问题所述,使用
" wc"或grep -c'';''"都是粗略的近似值。试试ncsl
免费提供 http:// www.lucentssg.com/displayProduct.cfm?prodid=33
Ed。
Is there any tool to count C-program lines except comments?
Thanks,
=====================================
Alex Vinokur
mailto:al****@connect.to
http://mathforum.org/library/view/10978.html
news://news.gmane.org/gmane.comp.lang.c++.perfometer
=====================================
Alex Vinokur <al****@bigfoot.com> scribbled the following:Is there any tool to count C-program lines except comments?
Try that comment stripping program posted here, and use wc on the
result.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"We''re women. We''ve got double standards to live up to."
- Ally McBeal
Alex Vinokur wrote:
Is there any tool to count C-program lines except comments?
This is Question 18.1 in the comp.lang.c Frequently
Asked Questions (FAQ) list
http://www.eskimo.com/~scs/C-faq/top.html
.... and I''m shocked! shocked! to learn that a "regular"
behaved like a newbie and failed to check the FAQ first.
--
Er*********@sun.com
On 11/18/2003 1:26 PM, Eric Sosman wrote:Alex Vinokur wrote:Is there any tool to count C-program lines except comments?
This is Question 18.1 in the comp.lang.c Frequently
Asked Questions (FAQ) list
The FAQ doesn''t adequately answer this specific question (as the FAQ says, using
"wc" or "grep -c '';''" are both crude approximations). Try "ncsl" available for
free at http://www.lucentssg.com/displayProduct.cfm?prodid=33
Ed.
这篇关于计算除注释之外的程序行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!