例85析构函数的执行过程 /EXAMPLE3 14.H #includesiostream. h>class a public: AO cout<<"AO is called"<<endl; AO is called The program wiil end AO AO is called cout<<AOis called"<<endl; /EXAMPLE3 14.CPP #include EXAMPLE3 14.H void maino couts<"the program will end"<<end;析构函数的执行过程 //EXAMPLE3_14.H #include<iostream.h>class A { public: A() { cout<<″A() is called″<<endl; } ~A() { cout<<″~A() is called″<<endl; } }; //EXAMPLE3_14.CPP #include″EXAMPLE3_14.H″ void main() { A a; cout<<″the program will end″<<endl; } A() is called The program wiil end ~A() is called 例 8-5