Hello beautiful people! I hope you are all having a great day/night. I am taking a C++ class and I am stuck. It is a simple program that asks you to input a 4 digit code as your password. If the code is found within a .txt document containing 300 four digit passwords then we get a "Welcome" message and the program closes. If the password is not found then we get 2 more chances to get it right (3 attempts overall). I tested the password search function and it works great. I was almost done but then the problem occurs when I try to integrate the loop system for the 3 wrong attempt. I get a build error and I have no idea what it is. I've been scratching my head for hours.
Please any help would be very much appreciate it. Thank you so much in advanced.
OMG I think I was just missing a bracket. I swear that was the first thing I tried, I'm so sorry. Thank you so much for helping me though, I really appreciate it.
Take care!