How do you measure them in visual studio :?)
Sorry for the newbie question, but I never figured this one out...
"The mere thought hadn''t even begun to speculate about the slightest possibility of traversing the eternal wasteland that is my mind..."
As far as I know there''s no built in way to measure lines of code in VC, but I know there are some addons for it that''ll do it for you.
-------------------------------NeXe: NeHe DirectX-style. Follow the orange rabbit.
Near the lower right, on the status bar, shows the current line and column. You can use this as a crude way to determine # of lines. Just go to the last line of your source file and note the number, although if you want to know the sum of the lines of code in several source files you''d have to add them all up manually.
er, that would measure lines of code+comments, which isn''t (i don''t think) what he wants...
There''s one site that specializes in MSVC++ add-ons, but I can''t think of it at the moment...
There''s one site that specializes in MSVC++ add-ons, but I can''t think of it at the moment...
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]
What does KLOC stand for?
And where can I get addons for VC++. I didn''t know they existed.
And where can I get addons for VC++. I didn''t know they existed.
quote:
Original post by Kranomano
What does KLOC stand for?
Thousands of lines of code. I ended up writing my own program to count the lines of code, but I can''t find it at the moment... It was relatively primitive anyway, it would just scan a directory tree and add up each file.
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
Do a seach over the whole project, for the semi-colon!
It''s crude but effective. Most lines of code have one.
Very few comments do.
Preprocessor d''s don''t.
Some items that might be considered a single line of code, will show more than one. e.g. for statement.
In general, the amount of semi-colons it finds is a preety good estimate.
It''s crude but effective. Most lines of code have one.
Very few comments do.
Preprocessor d''s don''t.
Some items that might be considered a single line of code, will show more than one. e.g. for statement.
In general, the amount of semi-colons it finds is a preety good estimate.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement