سلام .این برنامه یه قفل رمز هست ...که رمز پیش فرضش 123 هست ..جالبه توی بسکام فقط از خط اخر از من ارور می گیره .حالا نمی دونم چرا ؟ به نظرتون مشکل این برنامه چیه ؟ :angry: :angry: :angry:
اصلا جواب میده اینننننننننننن ؟!
Cls
Lcd "in the name of god"
Waitms 100
Cls
Dim A As Byte
Config kbd = porta
Config Portb = Output
Main:
Do
Cls
A = Getkbd()
Locate 1 , 1
Lcd A
If A = 1 Then Goto S1
If A > 1 Then Goto S5
Loop
End
S5:
A = Getkbd()
Locate 1 , 2
Lcd A
Waitms 50
A = Getkbd()
Locate 1 , 3
Lcd A
Waitms 100
Lcd "incorect"
Goto Main
S1:
A = Getkbd()
Locate 1 , 2
Waitms 50
Lcd A
Do
If A = 2 Then Goto S2
If A < 2 Then Goto S5
If A > 2 Then Goto S5
Loop
End
S2:
A = Getkbd()
Locate 1 , 3
Lcd A
Do
If A = 3 Then Goto S4
If A < 3 Then Goto S5
If A > 3 Then Goto S5
Loop
End
S4:
Set Portb.0
Lcd "correct"
Goto Main
اصلا جواب میده اینننننننننننن ؟!

Cls
Lcd "in the name of god"
Waitms 100
Cls
Dim A As Byte
Config kbd = porta
Config Portb = Output
Main:
Do
Cls
A = Getkbd()
Locate 1 , 1
Lcd A
If A = 1 Then Goto S1
If A > 1 Then Goto S5
Loop
End
S5:
A = Getkbd()
Locate 1 , 2
Lcd A
Waitms 50
A = Getkbd()
Locate 1 , 3
Lcd A
Waitms 100
Lcd "incorect"
Goto Main
S1:
A = Getkbd()
Locate 1 , 2
Waitms 50
Lcd A
Do
If A = 2 Then Goto S2
If A < 2 Then Goto S5
If A > 2 Then Goto S5
Loop
End
S2:
A = Getkbd()
Locate 1 , 3
Lcd A
Do
If A = 3 Then Goto S4
If A < 3 Then Goto S5
If A > 3 Then Goto S5
Loop
End
S4:
Set Portb.0
Lcd "correct"
Goto Main
دیدگاه