I apologize for the redundancy, as I am new to C++ and I am sure it has been answered before. I am asking in the console application if they need to re-pick their choice and go back to the beginning. I am trying to utilize a "do while" loop. If they enter "y" or "Y" it will say they are being redirected to the beginning of the program. If they enter "n" or "N" they move on to the next part of the program. I will just call the program "Homework". Every time I do the "do while" loop it will keep saying "Your game is initializing.", when I input "n" or "N" and is still doing a loop for that until I enter in "y" or "Y" and even then it keeps saying the same thing. If I take away the "do while" loop I can get "n" or "N" to say "Your game is initializing." and if I enter "y" or "Y" I can get it to say "Restarting system...". I am trying to get the input of "y" or "Y" to actually restart the program to the very beginning while letting it say "Restarting system...". I am only a week in, so please break it down for me and explain what I am doing wrong and what I need to do to make it right (and why please). The comments at the bottom is what I don't want to delete and forget yet. Thank you in advance! What I have right now will be shown as follows:





Code:
#include <iostream>
#include <string>

using namespace std;

int main()
{
    enum mode { EASY, NORMAL, HARD, EXPERT, BRUTAL, IMPOSSIBLE };

    cout << "Enter the cooresponding menu number and press enter " << endl;
    cout << endl;
    cout << "What difficulty do you want to play? " << endl;
    cout << endl;
    cout << "0. Easy Mode " << endl;
    cout << "1. Normal Mode " << endl;
    cout << "2. Hard Mode " << endl;
    cout << "3. Expert Mode " << endl;
    cout << "4. Brutal Mode " << endl;
    cout << "5. Impossible Mode " << endl;
    cout << endl;

    int mode = 0;

    cin >> mode;
    cout << endl;

    switch (mode)
    {
    case EASY:
        cout << "Easy Mode was selected" << endl;
        break;

    case NORMAL:
        cout << "Normal Mode was selected" << endl;
        break;

    case HARD:
        cout << "Hard Mode was selected" << endl;
        break;

    case EXPERT:
        cout << "Expert Mode was selected" << endl;
        break;

    case BRUTAL:
        cout << "Brutal Mode was selected" << endl;
        break;

    case IMPOSSIBLE:
        cout << "Impossible Mode was selected" << endl;
        break;
    }

    cout << endl;
    cout << "Would you like to start over? " << endl;
    cout << "Please input: Y or N: " << flush;

    char result1;
    cin >> result1;
    cout << endl;

    do
    {

        if (result1 == 'y' || result1 == 'Y');
        {
            break;
            cout << "Thank You, your game is initializing." << endl;
            cin >> result1;
        }

    } while (result1 == 'n' || result1 == 'N');



    if (result1 == 'y' || result1 == 'Y')

    {
        cout << "Restarting System..." << endl;
    }
    else
    {
        cout << "Thank You, your game is initializing." << endl;
    }
    /*while(result1 == 'y' || result1 == 'Y')
    {
     cout << "Restarting System..." << endl;
    }
    */

    return 0;
}