Please send questions to
st10@humboldt.edu .
/*----------------------------------------------------------------
Contract: main: void -> int
Purpose: playing with C strings and the standard string class
Examples: demo, so not really applicable
By: Sharon M. Tuttle
last modified: 12-7-05
-----------------------------------------------------------------*/
#include <iostream>
#include <string>
#include "repeat3.h"
using namespace std;
int main()
{
string greeting = "hello";
cout << "testing repeat3: 1's mean PASSED, 0's mean FAILED" << endl;
cout << "------------------------------------------------" << endl;
cout << (repeat3(greeting) == "hellohellohello") << endl;
cout << (repeat3("oh dear") == "oh dearoh dearoh dear") << endl;
return EXIT_SUCCESS;
}