Search
 
SCRIPT & CODE EXAMPLE
 

CPP

get value of enum cpp

enum class Color
{
    Red = 1,
    Green = 11,
    Blue = 111
};

int value = static_cast<int>(Color::Blue); // 111
Comment

PREVIOUS NEXT
Code Example
Cpp :: destructor in c++ 
Cpp :: coordinate in 1d array c++ 
Cpp :: inbuilt function to convert decimal to binary in c++ 
Cpp :: iterate vector in reverse c++ 
Cpp :: comparator for priority queue c++ 
Cpp :: how to get the size of a vector in c++ 
Cpp :: built in factorial function in c++ 
Cpp :: upcasting in c++ 
Cpp :: tolower funciton in cpp 
Cpp :: naive pattern matching algorithm 
Cpp :: deque c++ 
Cpp :: how to declare a 2d boolean vector in c++ 
Cpp :: powershell get uptime remote computer 
Cpp :: c++ string size 
Cpp :: c++ thread incide class 
Cpp :: how to append to a vector c++ 
Cpp :: initialize dynamic array c++ to 0 
Cpp :: to lowercase c++ 
Cpp :: Palindrome String solution in c++ 
Cpp :: c++ namespace 
Cpp :: insert image using set atribute 
Cpp :: cpp while 
Cpp :: operand-- c++ 
Cpp :: c function as paramter 
Cpp :: set width qpushbutton 
Cpp :: how to remove maximum number of characters in c++ cin,ignore 
Cpp :: string format decimal places c++ 
Cpp :: grep xargs sed 
Cpp :: lower bound and upper bound in c++ 
Cpp :: c++ check if key exists in map 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =