Passing arguments from function to function in c++
<p>I'm new to c++ and I'm trying to make a chess game.</p>

<p>Here's the thing I'm trying to make the main menu, and am having trouble. here's the snippit of my code:</p>

<pre><code>int mMenu(int&amp;, char&amp;, bool&amp;, char&amp;);

int main(char&amp;) 
{
    int choice;
    char sure;
    bool quit = false;

    char ctrl // used for the control from main menu to main()

    mMenu (choice, sure, quit);

    do
    {
        if (ctrl == a)
            NewGame();
        else if (ctrl == b)
            LoadGame();
        else
            quit = true;
    }
    while (quit == true);

    return 0;
}


int mMenu(int&amp; choice, char&amp; sure, bool&amp; quit, char&amp; ctrl,)
{
    do
{
    cout &lt;&lt; "                           Chess                               "
         &lt;&lt; "------------------------ Main Menu ------------------------\n"
         &lt;&lt; "Please choose what operation you'd like to perform from the         menu below\n\n"
         &lt;&lt; "1. New Game.\n"
         &lt;&lt; "2. Load Game.\n"
         &lt;&lt; "Exit.\n"
         &lt;&lt; "Your choice: ";
    cin &gt;&gt; choice;

    if (choice == 1)
    {
        cout &lt;&lt; "Are you sure you wish to start a new game? (Y/N) ";
        cin &gt;&gt; sure;
        if (sure != 'Y')
            clrscr();
        else
        {
            ctrl = a;
            quit = true;
    }
    else if (choice == 2)
    {
        ctrl = b;
        quit = true;
    }
    else if (choice == 3)
    {
        cout &lt;&lt; "Are you sure you wish to exit? (Y/N) ";
        cin &gt;&gt; sure;
        if (sure != 'Y')
            clrscr();
        else
        {
            quit = true;
            ctrl = c;
        }
    }
    }
}
while (quit = true);

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

<p>From that code my compiler (visual c++) is saying that int the main() function, mMenu does not take 3 arguments. What is wrong and how do I make it work?</p>

<p>Thanks in advance.</p>

<p>Also as you can see I'm trying to use clrscr(); but the compiler is flagging it saying it cannot find the definition for it, despite putting in the #include  any ideas?</p>
