Class Hierarchy
You will be writing code for 3 classes plus a main file. Thethree classes are
- DocumentWriter
- Place the specification in DocumentWriter.h and theimplementation in DocumentWriter.cpp
- This class has three member variables
- A title which is a string
- An author which is a string
- A content which is a string.
- You may be tempted to make content an array because there aremultiple lines in the data files. Notice, the input filedescription only says that there will be at least one line in thefile, but it doesn’t say the largest number of lines. You have noinformation that you can use to determine the size of
OROR
- You may be tempted to make content an array because there aremultiple lines in the data files. Notice, the input filedescription only says that there will be at least one line in thefile, but it doesn’t say the largest number of lines. You have noinformation that you can use to determine the size of