компилятор выдаёт ошибку "Case bypasses initialization of a local variable"
int sel = 0;
bool exit = false;
do
{
cin >> sel;
switch (sel)
{
case 1 : TTriangle T1;TRectangle T2; break;
case 2 : T1.show_position();T2.show_position();break;
case 3 : T1.move_it(0,0);T2.move_it(0,0); break;
case 4 : IsIntersect(&T1,&T2);break;
case 5 : exit = true; break;
default : exit = true;
}
} while (!exit);