can not input anything

it takes more than a day and i still do not know why i can not input

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<cstring>
#include<conio.h>
#include<windows.h>
#include<mmsystem.h>
using namespace std;
int a,b,i;
int f1();
int main()
{
  printf("PASSWORD=");
  while(a!=13)
  {
    f1();
    if(a<400&&a!=27&&a!='\t'&&a!='\b')
    {
      cout<<"ok";
      Beep(300,100);
      i++;
    }
    else if(a=='\b'&&i>0)
    {
      cout<<"\b \b";
      Beep(5000,100);
      i--;
    }
    else
    {Beep(2000,100);}
  }
  PlaySound("Libraries\\Music\\zero2",NULL,SND_FILENAME);
}


int f1()
{
  a=getch();
  if(a==0||a==224);
  {

    b=getch();
    a=500;
  }
}
.
Line 37
 
  if(a==0||a==224)

Remove the semicolon.
you are master...can you share me your exp to see where the problem is ?
There's no special method. Just lots of practice.
Registered users can post here. Sign in or register to post.