Answer to Question #57943 in C++ for mabswhale
int number_of_lines = 0;
while (std::getline(inpFile, line))
std::cout << "Number of lines in text file: " << numberOfLines;
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!