I am getting an exception when I run this code. It built successfully.
I think the exception is occuring during the execution of the void showgameboard function. Can someone help me figure out why this exception is being thrown.
using namespace std;
void showgameboard(string arr, int size)
cout << "Game Board:" << endl;
for (int i = 0; i < size; i++)
for (int j = 0; j < 5; i++)
cout << arr[i][j] << endl;