Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Mar 10 13:49:43 PST 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;
/*--------------------------------------------------
Contract: pretty_name : string string -> string
Purpose: expects a first name and a last name,
and it produces a single string
that is <last_name>, <first_name>
(the last name, then a comma and a blank,
and then the first name)
Examples: pretty_name("Frank", "Rizzo") == "Rizzo, Frank"
--------------------------------------------------*/
string pretty_name(string first, string last)
{
return last + ", " + first;
}