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

  Purpose: testing program for the function setw_play
  
  Examples: when this program is run, the following should
            be printed to the screen:
testing setw_play: should see hiya, 30.3, and 13: 
    formatted in a field of width 7: 
---------------------------------------
   hiya
   30.3
     13

    ...and now formatted in a field of width 3 
    (notice that it WON'T truncate the values if wider): 
---------------------------------------
hiya
30.3
 13

  by: Sharon Tuttle
  last modified: 5-4-10
-----*/

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

int main()
{
    cout << boolalpha;
    cout << endl;
    cout << "testing setw_play: should see hiya, 30.3, and 13: " << endl;
    cout << "    formatted in a field of width 7: " << endl;
    cout << "---------------------------------------" << endl;
    setw_play(7, "hiya", 30.3, 13);

    cout << endl;
    cout << "    ...and now formatted in a field of width 3 " << endl;
    cout << "    (notice that it WON'T truncate the values if wider): "
         << endl;
    cout << "---------------------------------------" << endl;
    setw_play(3, "hiya", 30.3, 13);

    return EXIT_SUCCESS;
}