Horje
get value of enum cpp Code Example
get value of enum cpp
enum class Color
{
    Red = 1,
    Green = 11,
    Blue = 111
};

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




Cpp

Related
pointer address to string Code Example pointer address to string Code Example
c++ triple Code Example c++ triple Code Example
c++ load file as vector Code Example c++ load file as vector Code Example
size of array Code Example size of array Code Example
how to turn int into string c++ Code Example how to turn int into string c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10