/**************************************************************** **** **** 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 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; }