/*-------
  Signature: main: void -> int

  Purpose: to repeatedly ask the user to enter the number
     of hips they want to see in a cheer,
     and then show a cheer accordingly,
     until they enter a negative number of hips,
     and then the program ends

  Examples: if the user enters -3 when prompted, the
      program just ends

      if the user enters 5 then 3 then 0 then -1 when
      prompted, the user should see in response:
 HIP
 HIP
 HIP
 HIP
 HIP 
 HOORAY!
 
 HIP
 HIP
 HIP 
 HOORAY! 
 
 HOORAY! 

  by: Sharon Tuttle
  last modified: 2016-12-02
--------*/

#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
#include "cheer.h"
using namespace std;

int main()
{
    cout << boolalpha;     

    int desired_num_hips;
    
    cout << "how many hips? (enter a negative # to stop): ";
    cin >> desired_num_hips;
    
    while (desired_num_hips >= 0)
    {
        cheer(desired_num_hips);
        
        cout << "how many hips? (enter a negative # to stop): ";
        cin >> desired_num_hips;
    }

    return EXIT_SUCCESS;
}