Question: Write a function that checks whether the diagonal joining the upper - left and the lower - right corners of a tic - tac -

Write a function that checks whether the diagonal joining the upper-left and the lower-right corners of a tic-tac-toe board are all the same. #include
using namespace std;
/**
Return true if all elements on the diagonal joining the upper-left
and the lower-right corners all the same.
@param board a 3 x 3 array of String
@return true if all elements are the same.
*/
bool upper_left_to_lower_right(string board[3][3])
{
return /* Your code goes here */ ;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!