title: enum operators (+,-,*,/) in c
body: <p>I want to make an enum that contains operations (+,-/,*).
  something like that</p>
  
  <p><code>enum operators{plus="+",minus="-",multy="*",div="/"};</code></p>
  
  <p>or something like the above. </p>
  
  <p>I want to compare it with a string for example (when input="+"): </p>
  
  <pre><code>enum operators op;
  scanf("%s",input);
    if(strcmp(input,op.plus)==0 ) // compiler error here 
        printf("ok");
  </code></pre>
  
  <p>Any ideas will be helpful.</p>
  
  <p>Thanks in advance.</p>