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.
Thank you!!!
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
void showgameboard(string arr[][5], 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;
}
}
}