Having trouble with if statements. Please help!

So I am writing code for a simulator. It's been a few months since I've coded and I'm really rusty. I am trying to do an if / else if statement and when I run it and get to the part where I choose either "Military, Culture, or Science" and enter one option in the program just finishes and doesnt move on. Please help and tell me what I am doing wrong/how to fix it! Thanks!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

#include <iostream>
#include <string>


using namespace std;


string empirename;
char Military;
char Government;
char Science;
char Culture;
char Option;
int main(int argc, const char * argv[])

{
    
    

    
    cout << "Hello, welcome to empire simulator. To start please choose a name for your new empire! Type it in below.";
    cin >> empirename;
    
    
    cout << "Alright welcome to your new empire named " << empirename << ". Now that you have your new empire, what areas would you like to focus it on? You can choose to focus it on the following: Military, Government, Science, Culture. ";
    cin >> Option;
    
    if (Option == Military) {
    
        cout << "Test1";
    
    }

    else if ( Option == Government )
    {
    
        
        cout << "Test2";
        
        
    }
    
    
    else if (Option == Science)
        
    {
        
        
    cout << "Test3";
    
}

};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <iostream>
#include <string>

using namespace std;

string empirename;
string Military;
string Government;
string Science;
string Culture;
string Option;
int main()

{

    cout << "Hello, welcome to empire simulator. To start please choose a name for your new empire! Type it in below.";
    cin >> empirename;
 
    cout << "Alright welcome to your new empire named " << empirename << ". Now that you have your new empire, what areas would you like to focus it on? You can choose to focus it on the following: Military, Government, Science, Culture. ";
    cin >> Option;
    
    if (Option == "Military") {
    
        cout << "Test1";
    
    }

    else if ( Option == "Government" )
    {

        cout << "Test2";
 
    }

    
    else if (Option == "Science")
        
    {
   
    cout << "Test3";

}

};
Thank you, so much!
Topic archived. No new replies allowed.