I have this program that I put in the startup folder of my computer, it is a password program. I made this program a few hours ago. I have a problem, everytime, it says you have 3 attempts, 2, then it jumps to 0. Here is my coding
You have f -= r; where I would expect to see a simple f--;
An unrelated comment. Function Delay() is resource-hungry. It is greedily consuming CPU cycles during the delay period. It would be a good idea to add a Sleep() call within the loop, in order to release the processor for other tasks.