I'm trying to preform a loop, using a combination of a if/else and while loops. I set a boolean "repeat1" to true, to enter the while loop. Then when I went the user to pick to repeat or move on, they enter a Y or N, if Y, keep repeat1=true, if n set repeat1=false
for some reason, repeat1 is always returning a value of false, can't figure out why.
while(repeat1== true)
{ ...
...
cout << "Would you like to add another item? (Y/N): ";
cin >> addAnother;
if(addAnother == 'y' && addAnother == 'Y')
repeat1= true;
else
repeat1= false;
}