Files
2023-07-08 09:36:10 -05:00

24 lines
619 B
C++

/****************************************************************
****
**** This file belongs with the course
**** Introduction to Scientific Programming in C++/Fortran2003
**** copyright 2018-2021 Victor Eijkhout eijkhout@tacc.utexas.edu
****
**** enum.cxx : examples of enums
****
****************************************************************/
#include <iostream>
using namespace std;
int main() {
//codesnippet enumcollide
enum colors { red,yellow,green };
cout << red << "," << yellow << "," << green << '\n';
enum flag { red,white,blue }; // Collision!
//codesnippet end
return 0;
}