// Include custom header files
#include "Pstring.h"

int main() { // Start main function

	string toBeTested; // String variable to hold user input

	// Prompt for user input
	cout << "This is a palindrome-testing program. Enter a string to test: ";
	cin >> toBeTested;

	// Call Pstring constructor with user input
	Pstring psobj(toBeTested);

	if (psobj.isPalindrome()) { // If isPalindrome() returns true
		cout << psobj << " is a palindrome" << endl; // Print palindrome
	} else { // If isPalindrome() returns false
		cout << psobj << " is not a palindrome" << endl; // Print not a palindrome
	}

	return 0; // Return end code

}
