Sorting strings by lengths

Pages: 12
Try adding a cin.sync(); cin.ignore(); at the end so you can see the output before it closes.
Last edited on
The prompt screen just comes up with nothing printing out..
Add more output to readLines().
such as if(!file){ ... } else std::cout << "file opened successfully\n"; and while (infile){ ... ; std::cout << "reading a line\n";}
Maybe that will make something clearer..
Topic archived. No new replies allowed.
Pages: 12