Question: Use the C + + library regex to implement the following application: Your program should read input string from a text file ( input .
Use the C library regex to implement the following application:
Your program should read input string from a text file inputtxt that contains lines. When the program is executed, it should print the following statistics about these keywords ErrorerrorErrorserrors or eror:
User enters a line number and the program prints the number of keywords in that line.
The number of lines containing at least one of the keywords.
The line numbers containing the maximum number of keywords.
The line numbers for the lines starting with these keywords
Note: the numbering of the lines starts with
Download the source code progextoc.cpp and run it to see how it should work. Then, read the comments to see where to put your code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
