i have something like
while(playAgain==true)
{
cout<<"new game"<<endl; //i know 'using namespace std;' is looked down upon
while(playerCard!=21)
{
*statements*
if(decision=='n')
{
break
}
...
}
}
but that break only breaks out of the first while loop when I want to break out of both of the loops
gotostatement which jumps to a label outside the loop.... Of course im joking :). The best solution is to avoid the nested if (The if with thebreak) and put the condition (decission == 'n') in the two loops.