Advertisement
Felanpro

some random stuff with enum

Jun 16th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. enum Animals //all integers.
  7. {
  8.     sheep,
  9.     cow,
  10.     donkey,
  11.     fish
  12. };
  13.  
  14. int main()
  15. {
  16.  
  17.     cout << cow << endl;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement