Pls guys i need help with this irritating code



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
   #include<iostream>
  #include<windows.h>
  #include<string.h>
  #include<stdio.h>
  using namespace std;
  int main()
{   
   char A[20];
   cout<<"Enter your password \n";
   gets(A);
   if(strcmp(A,"Thanosbuster")==0)
   { cout<<"Welcome Mr Stark"<<"\n";
   cout<<"How are you Mr Stark?"<<"\n";
   char B;
    cin >> B;
    char fine;
	 cin >> fine;
    if ( fine)
   cout<<"I am glad you are in good emotional state sir.\n";
   else
   cout<<"Sorry to hear that sir.\n";
   
   cout<<"Are going to armour up today sir?\n";
   char C;
   cin >> C;
   char Yes;
   cin >> Yes;
   if(Yes)
   cout<<"I recommend a complete port charge of your arc reactor"<<" if you are going out today i shall cancel the training meeting.\n";
   else
   cout<<"I hope you have your training meeting with SHEILD today in mind  sir if not, this is a reminder.\n";
   
   cout<<"Wnat type of cloth style do you want to wear?Formal or Casual?\n";
   char D;
   cin >> D;
   char Formal;
   cin >> Formal;
    if(Formal)
   cout<<"Oh so you want to be in buisness mode,as you wish sir.";
   else
   cout<<"Oh so you want to wear casuals ,good choise sir."; 
   cout<<"Have a good day sir."; }
   
   else
   cout<<"Intruder alert shutting down";

return 0;
}
Don't make a new post for the same question:

http://www.cplusplus.com/forum/beginner/254658/
Topic archived. No new replies allowed.