title: How do I select a range of values in a switch statement?
body: <p>When I try to compile I get this error:</p>
  
  <pre>
  1>------ Build started: Project: snake, Configuration: Debug Win32 ------
  1>  exercise.cpp
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(13): error C2059: syntax error : '>='
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(16): error C2059: syntax error : '>='
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(19): error C2059: syntax error : '>='
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(22): error C2059: syntax error : '>='
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(25): error C2059: syntax error : '>'
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(28): error C2059: syntax error : '=='
  1>c:\users\robin\documents\visual studio 2010\projects\snake\snake\exercise.cpp(34): warning C4065: switch statement contains 'default' but no 'case' labels
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main(){
      int score;
  
      //Vraag de score
      cout &lt;&lt; "Score:";
      cin &gt;&gt; score;
  
      //Switch
      switch(score){
          case &gt;= 100:
              cout &lt;&lt; "a";
              break;
          case &gt;= 50:
              cout &lt;&lt; "b";
              break;
          case &gt;= 25:
              cout &lt;&lt; "c";
              break;
          case &gt;= 10:
              cout &lt;&lt; "d";
              break;
          case &gt; 0:
              cout &lt;&lt; "e";
              break;
          case == 0:
              cout &lt;&lt; "f";
              break;
          default:
              cout &lt;&lt; "BAD VALUE";
              break;
      }
      cout &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>How can I fix this problem? It's a console application, Win32 and my IDE is Windows Enterprise C++ 2010.</p>
  
  <p>I'm learning from <em>Beginning C++ Through Game Programming</em>.</p>