switch statement not changing a variable : <p>I have a switch statement that goes as follows:</p>

<pre><code>                switch (event.key.keysym.sym) {
            case SDLK_ESCAPE:
                running = false;
                break;
            case SDLK_w:
                y -= 10;
                std::cout &lt;&lt; "pressed" &lt;&lt; std::endl;
                std::cout &lt;&lt; y &lt;&lt; std::endl;
            case SDLK_s:
                y += 10;
            }
</code></pre>

<p>when i run this program, press w and look in the console pressed is displayed and so is the value of y but however much i press w variable y will not change.</p>

<p>s however works just fine.</p>
