Question: Here is my current C++ code. I am getting an error and it will not compile. It needs to look like the screen shots below.

Here is my current C++ code. I am getting an error and it will not compile. It needs to look like the screen shots below. I need to be able to re-enter a password and it needs to continue to loop until a correct password combination has been entered.

This is the error I am getting:

Here is my current C++ code. I am getting an error and

#include using namespace std;

void validatePassword(string str) {

bool uF=false, lF=false, dF=false, flag = true; if (str.length()

for (int i = 0; i = 'A' && str[i] = 'a' && str[i] = '0' && str[i]

int main() { cout > str; if (validatePassword(str)) { cout

it will not compile. It needs to look like the screen shots

int main() cout > str; if (validatePassword(str) | { cout > str; if (validatePassword(str) | { cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!