Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Fri Oct 15 11:42:05 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;
/*--------------------------------------------------
signature: name_length : string string -> int
purpose: expects a first name and a last name, and produces
the length of the whole name (the number of characters
in both names combined)
Examples: name_length("Ann", "Burroughs") == 12
name_length("Hi'there", "Y'all") == 13
--------------------------------------------------*/
int name_length(string first_name, string last_name)
{
return first_name.length() + last_name.length( );
}