Please send questions to
st10@humboldt.edu .
#include <iostream>
#include <cmath>
#include "show_strings.h"
using namespace std;
/*-----
Contract: main: void -> int
Purpose: testing program for the function show_strings
Examples: when this program is run, the following should
be printed to the screen:
testing show_strings: I should see a title and 4 names:
---------------------------------------
My Family Names
Tutte
Highes
Rose
Lowell
by: Sharon Tuttle
last modified: 04-22-10
-----*/
int main()
{
const int NUM_NAMES = 4;
string family_names[NUM_NAMES] = {"Tuttle", "Hughes", "Rose",
"Lowell"};
cout << boolalpha;
cout << endl;
cout << "testing show_strings: I should see a title and 4 names: " << endl;
cout << "---------------------------------------" << endl;
show_strings(family_names, NUM_NAMES, "My Family Names");
cout << endl;
return EXIT_SUCCESS;
}