Hi! can someone tell me how to count the number of lines?
FrancisC07 0 Light Poster
Recommended Answers
Jump to PostHi! can someone tell me how to count the number of lines?
I suppose you mean the number of lines in a file??? create an int variable and initialize it to 0. Open the file. Set up a loop to read the file one line at a time using getline() …
All 3 Replies
xcruiser 0 Newbie Poster
monkey_king 39 Junior Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.