/*	Compare Strings program */

#include <iostream.h>
#include <lvpstring.h>

using namespace std;	// October 5, 2001

//--------------------------------------------------------------------------------
lvpstring Uppercase(lvpstring S)
/*	Returns a copy of S with all lowercase characters converted to 
	uppercase characters                         
	Post: String in all uppercase letters returned                              */
{
	for (int Letter=0; Letter<S.length(); Letter++)
		if ((S[Letter]>='a') && (S[Letter]<='z'))
			S[Letter]=S[Letter]-'a'+'A';
	return(S);
}
//--------------------------------------------------------------------------------
int main()
{
	lvpstring String1, String2;
	cout << "Enter a string: ";
	cin >> String1;
	cout << "Enter another string: ";
	cin >> String2;
	if (Uppercase(String1)==Uppercase(String2))
		cout << "Strings are equal." << endl;
	else
		cout << "Strings are not equal." << endl;
	return(0);
}

