我有类似的东西
while(playAgain==true)
{
cout<<"new game"<<endl; //i know 'using namespace std;' is looked down upon
while(playerCard!=21)
{
*statements*
if(decision=='n')
{
break
}
...
}
}
但是当我想跳出两个循环时,这个 break 只会跳出第一个 while 循环