title: C++ enumeration
body: <p>my question is about enumeration,my codes are :</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int main()
  {
      enum bolumler {programcilik,donanim,muhasebe,motor,buro} bolum;
      bolum = donanim;
      cout &lt;&lt; bolum &lt;&lt; endl;
      bolum += 2;  // bolum=motor
      cout &lt;&lt; bolum;
  
      return 0;
  }
  </code></pre>
  
  <p>The output should be
  1
  3
  but according to these codes the error is:</p>
  
  <pre><code> error C2676: binary '+=' : 'enum main::bolumler' does not define this operator or a conversion to a type acceptable to the predefined operator
  Error executing cl.exe.
  
  111.obj - 1 error(s), 0 warning(s)
  </code></pre>
  
  <p>Can you help me ?The other question is what can I do if I want to see the output like that "muhasebe"?</p>