Jump to content

Line counter

- - - - -

  • Please log in to reply
5 replies to this topic

#1
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
I wrote a BASIC program which counts the lines in my other BASIC programs. It includes number of lines total, number of empty lines, number of lines without empty lines, and seconds it took to count all of it up. Anything else I should add. I know it's my program and I should build it the way I like it, but I like getting ideas from other people. :-)

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
So...what's your question?
sudo rm -rf /

#3
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
What else should be included in a line counter?

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Try counting things like words and letters, you will need to learn how to separate words by spaces, it is a useful feature in word processors.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#5
Momerath

Momerath

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 243 posts
If it's for programming, you could add things like how many variables are declared, what control structures are used (if/then/else, while, do/while, switch/case, etc.). How many classes are defined, how many methods/properties per class.

#6
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
That's what I'm talking about. :-)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users