Monday, 4 March 2013

initialize the welcome


·  Now initialize the welcome_string and enjoy_string objects in the documents class’s
constructor in the file xxWelcomeDoc.cpp by adding the bold lines of code. Don’t forget
to be very fussy about copying exactly and placing the ; at the end of each line as
shown.
// xxWelcomeDoc construction/destruction
xxWelcomeDoc:: xxWelcomeDoc ()
{
welcome_string = "Welcome to Visual C++";
enjoy_string = "Enjoy!";
// TODO: add one-time construction code here
}

No comments:

Post a Comment