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

  Purpose: testing program for the function put_contents
  
  Examples: when the user runs the program test_put_contents,
            afterwards looky.txt will contain the following:
90
80.5
85.5
99

  by: Sharon M. Tuttle 
  last modified: 4-23-07
  -----*/

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

int main()
{
    const int NUM_SCORES = 4;
    double scores[NUM_SCORES] = {90, 80.5, 85.5, 99};

    if (! put_contents(scores, NUM_SCORES, "looky.txt"))
    {
        cout << "uh oh --- couldn't open file!" << endl;
        return EXIT_FAILURE;
    }

    // if reach here --- SHOULD have filled array??
    
    return EXIT_SUCCESS;
}