Answers for "using rand with enumeration c++"

C++
0

c++ enum rand

enum Color {Red, Green, Blue};
Color color = Color(rand()%3);
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language