Please send questions to st10@humboldt.edu .
/*-----
  Signature: main: void -> int

  Purpose: testing program for display_boa
  
  Examples: when this is run, the following should be printed to the
  	    screen:
for first boa:
boa's color is: red
...and its length is: 4.7
...and its favorite food is: pizza

for second boa:
boa's color is: green
...and its length is: 0.3
...and its favorite food is: rats

for third boa:
boa's color is: purple
...and its length is: 1.4
...and its favorite food is: candy

  by: Sharon Tuttle
  last modified: 12-3-10
-----*/

#include <iostream>
#include "boa.h"
#include "display_boa.h"
using namespace std;

int main()
{
    boa boa2("green", 0.3, "rats");
    boa *boa_ptr;

    cout << endl;
    cout << "for first boa: " << endl;

    display_boa(new boa("red", 4.7, "pizza"));
    // the bad news: I can't delete this, never gave it a name! 8-(

    cout << endl;
    cout << "for second boa: " << endl;
    
    display_boa(&boa2);

    // more typical use of new!

    boa_ptr = new boa("purple", 1.4, "candy");

    cout << endl;
    cout << "for third boa: " << endl;
    display_boa(boa_ptr);

    delete boa_ptr; // FREE the memory when done
    boa_ptr = NULL;

    cout << endl;
    return EXIT_SUCCESS;
}