Please send questions to
st10@humboldt.edu .
/*-----
Contract: main: void -> int
Purpose: testing program for the function write_to_looky
Examples: when this program is run, if the user types in:
Hi there! Lookit me!!
...when prompted, then when this program is done looky.txt
(in the current working directory) will contain:
Hi there! Lookit me!!
by: Sharon Tuttle
last modified: 5-3-10
-----*/
#include <iostream>
#include "write_to_looky.h"
using namespace std;
int main()
{
string users_msg;
// ask user for a message to write
cout << "Welcome to write_to_looky's tester! Give me a string to write: "
<< endl;
cin >> users_msg;
write_to_looky(users_msg);
cout << "Please look in looky.txt to see your message..." << endl;
return EXIT_SUCCESS;
}