Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ enum rand

enum Color {Red, Green, Blue};
Color color = Color(rand()%3);
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #enum #rand
ADD COMMENT
Topic
Name
2+6 =