Help me add parameters to a function that draws a pattern
<p><em><strong>Please help me answer this question , void Function with parameters. I do not understand it very well</em></strong></p>

<p>I want to write a program so that the user can input both characters that form the pattern</p>

<p>I need to define two  (characters) variables  which are  (star) and  (next),  the statement  must  include three parameters – one that will be an  (int)  for the pattern </p>

<p>and  two that will be (characters)  for the character to display the pattern. </p>

<p>I have to change the  function  (drawpattern)  to have three values parameters </p>

<p>an (int)  parameter indicating the size  of the pattern  and two  (characters) indicating the character that will be used to display the pattern .</p>

<p>input  (4) for size, (Y) for the character to be used  to start the pattern  and  (+) for the second and every alternate group</p>

<p>This is what I have done so far and I do not now if is okay:</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

void drawPattern(int size, char start, char next)
{
    for (int i = 0; i &lt;= size; i++)
        for (int j = 0; j &lt;= size; j++)
        {
            if ((i / size) % 3 == 0)
                if ((j / size3) % 3 == 0)
                    cout &lt;&lt; '4';
                else
                    cout &lt;&lt; 'Y';
            else
                if ((j / size) % 3 == 0)
                    cout &lt;&lt; '+';
                else
                    cout &lt;&lt; '4';
        }
}  
int main ()
{
    int size;
    char start, next;

    cout &lt;&lt; "Please enter number ( 4 ) for the size of the pattern : ";
    cin &gt;&gt; size;

    cout &lt;&lt; " Now enter leter ( Y ) to start the pattern: ";
    cin &gt;&gt; start;

    cout &lt;&lt; "Lastly enter the ( + ) for the other pattern: ";
    cin &gt;&gt; size;

    cout &lt;&lt; " This is the output pattern: " &lt;&lt; endl;
    drawPattern(size, start, next);

    return 0;
}
</code></pre>
