// File: main2.cpp // // Testing where the destructor gets called. #include #include "dmc.h" using namespace std ; int main() { cout << "\n\nEntering main()\n\n" ; DMC A ; for(int i = 0 ; i < 5 ; i++) { cout << "Entering body of for loop\n" ; DMC X ; cout << "At the bottom of the loop\n" ; } cout << "\n\nExiting main()\n\n" ; }