Please send questions to st10@humboldt.edu .
//---------------------------------------------------------------
// File: test_recMax
// Name: Sharon M. Tuttle
// last modified: 1-29-05
//
// Purpose: tester for function recMax
//---------------------------------------------------------------

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

int main ()
{
    // set-up declarations
    int exArr[] = {50, 13, 130, 2, 27, 169, -5, 16, 22};

    // tests and associated cout's

    cout << endl;
    cout << "Testing function recMax..." << endl;
    cout << endl;

    cout << "1's mean test passed, 0's mean test failed:" << endl;
    cout << "-------------------------------------------" << endl;

    cout << (recMax(exArr, 9) == 169) << endl;
    cout << (recMax(exArr, 1) == 50) << endl;
    cout << (recMax(exArr, 3) == 130) << endl;

    return EXIT_SUCCESS;
}