C++ console not showing menu
<p>If the user selects 1 or 2, function doesn't run. Any suggestions?</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

void getTitle();
void getIsbn();

int main()
{
    int choice = 0;      // Stores user's menu choice

    do
    {
        // Display menu
        cout &lt;&lt; "             Main Menu\n\n\n";

        // Display menu items
        cout &lt;&lt; "   1. Choose 1 to enter Title.\n";
        cout &lt;&lt; "   2. Choose 2 to enter ISBN.\n";
        cout &lt;&lt; "   3. Choose 3 to exit.\n";

        // Display prompt and get user's choice
        cout &lt;&lt; "   Enter your choice: ";
        cin  &gt;&gt; choice;

        // Validate user's entry
        while (choice &lt; 1 || choice &gt; 3)
        {
            cout &lt;&lt; "\n   Please enter a number in the range 1 - 3. ";
            cin  &gt;&gt; choice;
        }

        switch (choice)
        {
        case 1:
            getTitle();
            break;
        case 2:
            getIsbn();
            break;
        }
    } while (choice != 3);

    return 0;
}

void getTitle()
{
    string title;
    cout &lt;&lt; "\nEnter a title: ";
    getline(cin, title);
    cout &lt;&lt; "\nTitle is " &lt;&lt; title &lt;&lt; "\n\n\n";
}

void getIsbn()
{
    string isbn;
    cout &lt;&lt; "\nEnter an ISBN: ";
    getline(cin, isbn);
    cout &lt;&lt; "\nISBN is " &lt;&lt; isbn &lt;&lt; "\n\n\n";
}
</code></pre>
