#include #include #include "announcer.h" using namespace std; //Function declarations void f(); void g(); int main() { const announcer methuselah {"Methuselah"}; f(); return EXIT_SUCCESS; //methuselah dies at this return. } void f() { const announcer f1 {"Francis"}; //Born in alphabetical order. const announcer f2 {"Fran"}; const announcer f3 {"Frank"}; g(); } //Fran, Fran, Francis die in reverse alphabetical order at this closing } void g() { announcer a[] { //Born in alphabetical order. announcer {"Abe"}, announcer {"Amy"}, announcer {"Ann"} }; cout << "At the end of function g, there are " << announcer::howMany() << " objects.\n"; }//Ann, Amy, Abe die in reverse alphabetical order at this closing }