Question: Write a C++ program that acts like a simple counting tool for collecting information from textual files of documents prepared for a simple scripting language


the generated results are as follows: \begin{tabular}{l|l} Enteredfilename & Enterthenameofafiletoreadfrom:infile2.txt \\ Total Number of Lines: 13 \\ Number of commented lines: 4 \\ Maximum Length of commented lines: 24 \\ Maximum Length of non-conmented 1 ines: 17 \\ Compented line of maximum length: "\&t execute next command" \\ Non-commented line of maximum length: "run prog1 " \end{tabular} Notes: 1. The example assumes that the file name is entered from the kevboard. 2. There are 14 lines in this input file. 3. The sereen pointer is at a new line after displaying the results. 4. You have to apply the same format in order to have exact match. Grading Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
