int main() { int number_of_lines = 0; std::string line; std::ifstream inpFile("file.txt"); while (std::getline(inpFile, line)) ++numberOfLines; std::cout << "Number of lines in text file: " << numberOfLines; return 0; }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments