Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count_lines (ifstream& thefilename)
- {
- char (y);
- int counter = 0 ;
- while (!thefilename.eof()) {
- thefilename.get(y);
- if (y == '\n');
- }
- counter = counter ++ ;
- if (y! = '\n'){
- counter = counter ++ ;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement