0
void playAgain()
{
	char again;
	
	cout << "Do you want to play again (y/n)?: ";
	cin >> again;
	
	if (again == 'y')
		chooseOption();
	else if (again == 'n')
		cout << endl << "Thanks for playing Connect Four, the game of the clever people!";
	else
		cout << "Invalid Choice" << endl;
		playAgain();

	return;
}

when n is entered, it loops itself back to the begining again.
i need it to terminate when n is entered, but cant work out how to do it.

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Slavrix
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.