title: How to count the number of lines of an input file?
body: <p>I know that every line of an input file contains five numbers, and I want my c++ program to automatically determine how many lines are in the file without asking the user. Is there a way to do this without using getline or the string class?</p>