Game Programming Through CPP By Michael Dawson/Chapter 7 Exercises/Chapter 7 Exercises.cpp
void MadLib() {
    cout << "Welcome to Mad Lib.\n\n";
    cout << "Answer the following questions to help create a new story.\n";

    string name = askText("Please enter a name: ");
    string noun = askText("Please enter a plural noun: ");
    int number = askNumber("Please enter a number: ");
    string bodyPart = askText("Please enter a body part: ");
    string verb = askText("Please enter a verb: ");

    string* pName = &name;
    string* pNoun = &noun;
    int* pNumber = &number;
    string* pBodypart = &bodyPart;
    string* pVerb = &verb;

    tellStory(pName, pNoun, pNumber, pBodypart, pVerb);
}
/**
* 2. Rewrite the Mad Lib Game project from Chapter 5, "Functions: Mad Lib," 
* so that no string objects are passed to the function that tells the story. 
* Instead, the function should accept pointers to string objects.
*/
2. Rewrite the Mad Lib Game project from Chapter 5, "Functions: Mad Lib,"
so that no string objects are passed to the function that tells the story.
Instead, the function should accept pointers to string objects.
2 . Rewrite the Mad Lib Game project from Chapter 5 " Functions : Mad Lib " so that no string objects are passed to the function that tells the story . Instead the function should accept pointers to string objects .
void MadLib() {
    cout << "Welcome to Mad Lib.\n\n";
    cout << "Answer the following questions to help create a new story.\n";
    string name = askText("Please enter a name: ");
    string noun = askText("Please enter a plural noun: ");
    int number = askNumber("Please enter a number: ");
    string bodyPart = askText("Please enter a body part: ");
    string verb = askText("Please enter a verb: ");
    string* pName = &name;
    string* pNoun = &noun;
    int* pNumber = &number;
    string* pBodypart = &bodyPart;
    string* pVerb = &verb;
    tellStory(pName, pNoun, pNumber, pBodypart, pVerb);
}
void MadLib ( ) { cout << " \n \n " ; cout << " \n " ; string name = askText ( " " ) ; string noun = askText ( " " ) ; int number = askNumber ( " " ) ; string bodyPart = askText ( " " ) ; string verb = askText ( " " ) ; string * pName = & name ; string * pNoun = & noun ; int * pNumber = & number ; string * pBodypart = & bodyPart ; string * pVerb = & verb ; tellStory ( pName , pNoun , pNumber , pBodypart , pVerb ) ; }
2.
2 .