Question
1. Member Functions Replace the eight supporting output functions with member functions in the eight struct s. Name the functions as you like, but name
1. Member Functions
Replace the eight supporting output functions with member functions in the eight struct s. Name the functions as you like, but name them all the same. Their prototypes inside the struct s should all look exactly alike, all with exactly one parameter -- an ostream reference. Modify the function called from the console and file output loops in int main accordingly.
2. Stream Manipulators
Replace the formatting code blocks in each output function with the manipulators provided in the module.
3. Conditional Operators
If you have not already done so, apply the conditional operator so that there are no more if-else statements to convert tokens to dimensions. Shapes.3.cpp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started