Please send questions to st10@humboldt.edu .
#include <iostream>
#include "wtsIntoArray.h"
using namespace std;

// quick'n'dirty test of function wtsIntoArray
//
// by: Sharon M. Tuttle
// last modified: 10-28-03

int main()
{
    // local variables
    const int MAX = 20;
    double allWts[MAX];  // darn! I HAVE to give it an 
                         //    initial size
    int howMany;

    // does wtsIntoArray return true?
    if (wtsIntoArray("ratWeights.txt", allWts, howMany))
    {
        cout << "wtsIntoArray returned true!" << endl;
        
        // is howMany correct?
        cout << "is howMany == 4? 1 if so: " <<
	    (howMany == 4) << endl;
  
        // does array contain what it should?
        for (int i=0; i < howMany; i++)
        {
            cout << "allWts[" << i << "]: "
                 << allWts[i] << endl;
        }
    }
    else
    {
        cout << "pooh! wtsIntoArray returned false!"
             << endl;
    }
    return 0;
}