/*-------
Signature: main: void -> int
Purpose: to ask the user to repeatedly enter how many
HIPS they want in cheers until they enter a negative
number of HIPs to indicate they want to stop --
and it cheers to the screen as they request
Examples: if, when called, the user enters -3 when prompted, the program
just ends.
if, when called, the user enters 3, then 5, then 0, then -1, when
prompted, the user should see in response
HIP
HIP
HIP
HOORAY!
HIP
HIP
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 num_hips;
cout << "how many hips? (enter negative to stop): ";
cin >> num_hips;
while (num_hips >= 0)
{
cheer(num_hips);
cout << "how many hips? (enter negative to stop): ";
cin >> num_hips;
}
return EXIT_SUCCESS;
}