So I am new to C++, and I am working through a pdf tutorial that is getting me started with basic stuff. I was writing a simple case program, and I experienced something weird.

```
#include "pch.h"
#include <iostream>
#include <string>

using namespace std;

enum string_feeling {
    eGood,
    eBad,
    eOk,
};

string_feeling hashit(string const& feeling) {
    if (feeling == "Good" || feeling == "good" || feeling == "GOOD") {
    return eGood;
    }
    if (feeling == "Bad" || feeling == "bad" || feeling == "BAD") {
        return eBad;
    }
    if (feeling == "Ok" || feeling == "ok" || feeling == "OK") {
        return eOk;
    } 
    else cout << "";
}

int main() {
    string username;
    cout << "Hello! Please enter your first name here: \n";
    cin >> username;
    cout << "Hello, " << username << "!\n";
    cout << "How are you today? ";
    string feeling;
    cin >> feeling;
    cout << endl;

    switch (hashit(feeling)) {
    case eGood:
        cout << "That's great!";
        break;
    case eBad:
        cout << "I hope you are happy soon!";
        break;
    case eOk:
        cout << "That's good.";
        break;
    default:
        cout << "Ok.";
    }
}

```

Whenever I didn't have the "else" after the "if (feeling == ok)" stuff, the default case would never be called and if I entered something random it would give me the text from the eGood case. I was wondering why this is happening and since I'm learning C++ I didn't want to just brush it off not ever knowing why it worked after I put the else statement in there. So, if anyone could explain this to me that would be great! Sorry for my bad grammar.