title: Switch Case in c++
body: <p>How can I compare an array of char in c++ using switch-case?
  Here is a part of my code:</p>
  
  <pre><code>char[256] buff;
  switch(buff){
  case "Name": printf("%s",buff);
               break;
  case "Number": printf("Number "%s",buff);
                 break;
  defaul : break
  }
  </code></pre>
  
  <p>I receive the error :" error: switch quantity not an integer".How can I resolve it?</p>