I'm trying to break from a while loop in a switch statement but it's not working. I get an infinite loop. Why?
int main()
{
    int n;
    while (std::cin >> n)
    {
         switch (n)
         {
         case 4:
             break;
             break;
         default:
             std::cout << "Incorrect";
             break;
         }
    }
}
 
     
    