title: Displaying enumerated type
body: <p>Alright so this is my display function, and the enumerated type associated with it.</p>
  
  <pre><code>enum EventType {ARRIVAL = 'A', DEPARTURE = 'D'};    
  
  
  void EventList::display()
  {
  cout &lt;&lt; "Event List: ";
  for (ListNode *cur = head; cur != NULL; cur = cur-&gt;next)
  {
      if (cur-&gt;item.type == ARRIVAL)
          cout &lt;&lt; ARRIVAL &lt;&lt; cur-&gt;item.beginTime &lt;&lt; ":" &lt;&lt; cur-&gt;item.transactionLength &lt;&lt; " ";
      else if (cur-&gt;item.type == DEPARTURE)
          cout &lt;&lt; DEPARTURE &lt;&lt; cur-&gt;item.beginTime &lt;&lt; " ";
  }
  cout &lt;&lt; endl;
  </code></pre>
  
  <p>}</p>
  
  <p>The problem with this is that the output I want is for it to display the A or the D. Not the integer values associated with the letters. How exactly do I do this?</p>
  
  <pre><code>Event List: 652:5 686
  </code></pre>
  
  <p>I want that to read</p>
  
  <pre><code>Event List: A2:5 D6
  </code></pre>