Question: Can anyone help me with C++ program which receives a file name as command line argument, reads all the lines of text in the input
Can anyone help me with C++ program which receives a file name as command line argument, reads all the lines of text in the input file, and prints out the longest line in the file.
If there are multiple lines of the same length, the first longest line should be returned. If the input file is empty (does not contain any lines) then the program should not print anything.
Don't need to be the full code, just a general frame/algorithm is good enough. thx!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
