Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Mar 24 13:52:49 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;
/*--------------------------------------------------
Contract: get_word : void -> string
Purpose: expects nothing,
but interactively asks the user to type in a word,
and then it returns that word ended with three exclamation points
Examples: get_word() == "howdy!!!"
get_word()
--------------------------------------------------*/
string get_word()
{
string word;
cout << "Please type in a word, and then return: " << endl;
cin >> word;
return word + "!!!";
}