Hey guys first let me tell you that i am taking class of basic programming and i am a little slow on learn the codes. Okay my question is how to make a loop stop and after that how to clear it completely so that the user have to confirm the password.
Now i was able to do the first part(i even added some additional strings just in case) but i got stuck when this part(if (Input == num & mayor & minor & symbols) didn't want to run and also on the second part is receiving errors on the variable bool that it didn't accept the (otropw). I use (otropw)to save the password.
Also correct me if i am wrong but (getpassword) stands for getting the save password?
The code looks like a nice start, but it is missing some parts like the header files, main and the function "getPassword".
Also correct me if i am wrong but (getpassword) stands for getting the save password?
Most likely no. "getPassword(otropw)" looks like a function that you have written, but I am not sure what the code of this function is or what you are trying to do.
Line 119 is a either part way to a prototype or a function call. I think you are trying to write a prototype, but missing some information in side the ().
I will have to see if I can figure out a working program to test what you have. Not sure if I will get it right.
the first part is a loop that i wanted to stop and i finally did
if (Input == num && Input == mayor && Input == minor && Input == symbols)
{
otropw = Input;
system("pause");
system("cls");
}
yay!!
now the second part is when i want to confirm the password and have 3 tries
(otropw is where the saved password is) and this is the part that i am stuck now
string otropw,confirm_otropw;
string what_you_think_is_pw;
do
{
cout << "Please enter password: ";
cin >> what_you_think_is_pw;
Sorry for the delay, I have been sick on and off for the since the first of the month.
You have made changes That you say work for you, so you should post the new code to show what you have done.
I fine this line questionable: if (Input == num && Input == mayor && Input == minor && Input == symbols) because I do not know what came before it.
The do/while loop looks like Thomas1965's example and should work, but it is only part of your code and out of context it is hard to say if it will work with your program.
It would be helpful if you could post the whole program because what you think is the problem may start somewhere else and that is hard to guess at.
What I came up with to test your code is completely different from what you have, so we are working in two different directions.