X1210: Codewit Destiny: Editing documents using pass-by-reference in C++

Follow Destiny's demonstration and define a function called editYes that receives a parameter passed-by-reference that is of type GoogleDoc. Assume GoogleDoc has already been defined as a structure that contains two string attributes: creator and body.

The editYes function should update the parameter's body attribute to add "new information." to the end of the existing string.

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.