initialization of ‘element’ is skipped by ‘case’ label [duplicate]

Try wrap case with {}, and put all your statement inside {}.

case 1:
{
   cout << endl << endl << "Current S = ";
   this->printSet();    
   // and other mess
}
break;

You should put all these statement in functions, keep case statement clear. For example, write this style:

case 1:
   initializeElement();
   break;
case 2:
   doSomethingElse();
   break;

See link

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)