Page 392; Ch 7; Ex 7_17
Mid page: "If you recompile the program and execute it once more, you see the following output.
...
The initials are: E.I.E.I.O.
Press any key to continue . . ."
To see the initials, you need to add the following before the final 'return 0;'
// Output the initials
Console::Write(L"The initials are:");
for(int i = 0 ; i < myName->NameCount ; i++)
Console::Write(L" {0}", myName->Initials[i]);
Console::WriteLine();
|