Please send questions to
st10@humboldt.edu .
/*-----
Signature: main: void -> int
Purpose: add an interactive interface to
the function greeting
Examples: if, when this is run, the user
types
Snoopy
..when prompted, this should cause
the following to be printed to the
screen:
Hi, Snoopy!
by: Sharon Tuttle
last modified: 11-18-2010
-----*/
#include <iostream>
#include <string>
#include "greeting.h"
using namespace std;
int main()
{
string desired_name;
// find out who to greet, and greet them
cout << "Please enter your name " << endl;
cout << " (and type return): ";
cin >> desired_name;
greeting(desired_name);
return EXIT_SUCCESS;
}