Question: with C++ Below is a simpler version of the previous program but the idea is still the same. Program creates an object names thing, which

with C++ Below is a simpler version of the previous program butwith C++

Below is a simpler version of the previous program but the idea is still the same. Program creates an object names thing, which is an instance of the class AskAndPrint. Your task is to write the class AskAndPrint and create a method DoYourThingo that receives the string from the variable text", prints it's contents, reads user input and prints it on screen. Write only the missing class in the below text box. The functionality of the complete program can be seen in the example print. Tip: User may input spaces so reading simply cin >> text; is not enough. #include #include using namespace std; // your code here int main (void) { char charstring[] = "Write the text for printing:"; AskAndPrint thing; thing.DoYourThing(text); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!