title: Case label does not reduce to an integer constant in C?
body: <p>I am working on a game and I ran my code and got the error "case label does not reduce to an integer constant." I think I know what this means, but how do I fix it? Here is my code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;stdlib.h
  
  int player_cash[3] = {50};
  char job[][20] {
      'A',
      'B',
      'C',
      "Donate",
      "Go to work",
      "Exit"
  };
  int jobs;
  
  int main()
  {
      while(player_cash[0] &gt; 0) {
          printf("Please type A, B, C, Donate, Go to work, or Exit\n");
          switch(jobs) {
  
              case 'A':
              player_cash[0]-=5;
              player_cash[1]+=5;
              printf("Cash=%i\n\n", player_cash[0]);
              continue;
  
              case 'B':
              player_cash[0]-=5;
              player_cash[2]+=5;
              printf("Cash=%i\n\n", player_cash[0]);
              continue;
  
              case 'C':
              player_cash[0]-=5;
              player_cash[3]+=5;
              printf("Cash=%i\n\n", player_cash[0]);
              continue;
  
              case "Donate":
              player_cash[0]-=15; //Error here
              player_cash[1]+=5;
              player_cash[2]+=5;
              player_cash[3]+=5;
              printf("Cash donated\n\n");
              printf("Cash=%i\n\n", player_cash[0]);
              continue;
  
              case "Go to work":
              player_cash[0]+=10; //Error here
              printf("Work done\n\n");
              printf("Cash=%i\n\n", player_cash[0]);
              continue;
  
              case "Exit":
              printf("Thanks for playing!\n\n"); //Error here
              break;
  
              default:
              printf("Does not compute");
              continue;
          }
      }
          getchar();
          return 0;
  }
  </code></pre>
  
  <p>So, what I want the user to do is type in one of the options, and do the action that corresponds with it. How do I fix this?</p>