Do My Homework / Homework Help Answers / Coding Homework Help / Coding Homework c++ Classes, read, constructer etc

Coding Homework c++ Classes, read, constructer etc

Need help with this question or any other Coding assignment help task?

Call: CPPGrep search string file1 [file2 ....] CPPGrep searches the specified files line by line for the search string and returns those lines in which the search string occurs, including their line number standard output on. The number of hits within the file must also be output after each file. It should also be possible to save the results in a file. Use an abstract class named AbstractFileCommand containing the following abstract methods contains: • Constructor that receives an array of filenames and the search string. • read(): Reads in all files, processes them and saves the results. • write(string filename): Saves the results to a file. • print(): Returns the results either as a string or as an object of another class output back to the caller The CPPGrep class, which appropriately implements the methods for the grep command, inherits from this purely abstract class The dialog is pretty simple: the user invokes the program through a terminal command as described above. The file names are passed as command line parameters. To processing, the results are output to the screen and the user is asked whether he would also like to save the results in a file. If so, he gives one filename. The class CPPCount should also inherit from the abstract class AbstractFileCommand and with the following functionality: Just like CPPGrep, when invoked as Command line parameters several files can be given. Then the characters and counted the lines in the files. The output takes place again on the screen using the print() method and optionally to a file. Call CPPCount file1 [file2 ....]
There are no answers to this question.
Login to buy an answer or post yours. You can also vote on other others

Get Help With a similar task to - Coding Homework c++ Classes, read, constructer etc

Related Questions

Similar orders to Coding Homework c++ Classes, read, constructer etc
71
Views
2
Answers
61
Views
2
Answers
106
Views
2
Answers
Popular Services
Tutlance Experts offer help in a wide range of topics. Here are some of our top services: