00001
00002
00003 #include <iostream>
00004
00005 using std::cout ;
00006 using std::endl ;
00007
00008 #include "TheCat.h"
00009 #include "cat.h"
00010 #include "BESInitList.h"
00011
00012 Animal *TheCat = 0;
00013
00014 static bool
00015 buildNewCat(int, char**) {
00016 cout << "I am building new cat" << endl;
00017 TheCat = new cat("Muffy");
00018 return true;
00019 }
00020
00021 static bool
00022 destroyNewCat(void) {
00023 cout << "I am destroying the cat" << endl;
00024 if(TheCat) delete TheCat;
00025 return true;
00026 }
00027
00028 FUNINITQUIT(buildNewCat, destroyNewCat, 2);
00029