Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ enum rand

enum Color {Red, Green, Blue};
Color color = Color(rand()%3);
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ display numbers as binary 
Cpp :: max three values c++ 
Cpp :: c++ uniform_real_distribution get same result 
Cpp :: shout sharkest 
Cpp :: C++ Converting Kelvin to Fahrenheit 
Cpp :: pass c++ 
Cpp :: c++ remove space from string 
Cpp :: note++ 
Cpp :: prime number program 
Cpp :: how to print text on C++ 
Cpp :: c++ split string by space into vector 
Cpp :: stack implementation using linked list in cpp 
Cpp :: range of long long in c++ 
Cpp :: how to check sqrt of number is integer c++ 
Cpp :: c++ area of triangle 
Cpp :: maximum value in map in c++ 
Cpp :: how to make a n*n 2d dynamic array in c++ 
Cpp :: c++ rand 
Cpp :: taking a vector in c++ containing element 
Cpp :: factorial using recursion cpp 
Cpp :: how to string to integer in c++ 
Cpp :: how to iterate from second element in map c++ 
Cpp :: map in c++ sorted descending order 
Cpp :: c++ pointer null vs nullptr 
Cpp :: C++ Swap 2 Variables Without Using 3rd Variable 
Cpp :: how to create a min priority queue of pair of int, int 
Cpp :: max_element c++ 
Cpp :: setprecision c++ 
Cpp :: c++ do while loop 
Cpp :: functors in c++ 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =