Counting Lines of Code

Although there exists a plethora of programs that count lines of code, I thought I would write my own. It is designed to analyse C/C++ code and ignore whitespace, // and /**/ comments (both the single and multi-line sort). It also counts the number of FIXME's one has left in their code. Other languages (eg: Javascript, assembly) that also use such commenting conventions are compatible too.

The binary, as well as source code, can be downloaded from the attachments list below.

If you need to count lines of code on Linux, you can use the SLOCC script.

AttachmentSize
slocc.sh12.84 KB
CodeCounter.exe49 KB
CodeCounter.zip23.86 KB