I have a problem with c++, can someone help me?
I'm an informatic student and at my school we started learning c++. I'm really into but when i was doing one of my homework for the switch case i run in to a problem. When i run my code at a default case codeblocks tell me this: "error: jump to case label [-fpermessive], but i don't know how to resolve it, even though I don't really know what that means... I would be grateful if someone could explain me how to solve. But remember that my programming level is not that high since I have just started learning. I copy the code below, know that there are about 100 lines and that both above and below this part there is much more. Thanks to all. do { cin >> condizione; switch (condizione) { case 'P': cout << "Hai selezionato lo sconto dedicato ai pensionati. Ricevi uno sconto sul prezzo del 10%." << endl; sconto=10; break; case 'S': cout << "Hai selezionato lo sconto dedicato agli studenti. Ricevi uno sconto sul prezzo del 15%." << endl; sconto=15; break; case 'D': cout << "Hai selezionato lo sconto dedicato ai disoccupati. Ricevi uno sconto sul prezzo del 25%." << endl; sconto=25; break; case 'N': cout << "Non hai selezionato uno sconto." << endl; bool scontato=false; break; default: cout << "Seleziona un'opzione esistente." << endl; break; } }while(condizione!='P' && condizione!='S' && condizione!='D' && condizione!='N');