Argument of type 'int' is incompatible with parameter of type 'char'
<p>I'm trying to create a simple tic tac toe game using c++ as part of some homework but having difficulty drawing the board. I'm trying to draw a basic board using hyphens (dashes) like:</p>

<pre><code>- - -
- - -
- - -
</code></pre>

<p>But I get the error "Argument of type 'int' is incompatible with parameter of type 'char'". Can someone please help by pointing me in the right direction?</p>

<p>My code is as follows:</p>

<pre><code>char empty = '-';

int size = 9;
int width = 3;

void showBoard(char board[]);

void showBoard(char board[])
{
    for (int i = 0; i &lt; size; i++)
    {
        for (int j = 0; j &lt; width; j++)
        {
            board[i] = empty;

          cout &lt;&lt; board &lt;&lt; endl;
        }

        cout &lt;&lt; endl;
    }
}

int main()
{
    showBoard(10);
}
</code></pre>
