For loop before Switch on int ?

yes correct, there is another loop after the switch. if i disconnect the loop after the switch it will work now as you said.

Will my case work in C++ tho? (without applying your suggestion yet)