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; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"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
Leave a comment