Please send questions to
st10@humboldt.edu .
#include <iostream>
#include <cmath>
#include "get_full_names.h"
using namespace std;
/*-----
Contract: main: void -> int
Purpose: testing program for the function get_full_names
Examples: when run, this program should print the following to
then screen:
testing get_full_names: true's should mean passed:
---------------------------------------
(last_first == "Schulz, Charles"): true
(first_last == "Charles Schulz"): true
by: Sharon Tuttle
last modified: 04-27-10
-----*/
int main()
{
string last_first;
string first_last;
get_full_names("Charles", "Schulz", last_first, first_last);
cout << boolalpha;
cout << endl;
cout << "testing get_full_names: true's should mean passed: " << endl;
cout << "---------------------------------------" << endl;
cout << "(last_first == \"Schulz, Charles\"): "
<< (last_first == "Schulz, Charles") << endl;
cout << "(first_last == \"Charles Schulz\"): "
<< (first_last == "Charles Schulz") << endl;
cout << endl;
return EXIT_SUCCESS;
}