Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // test by kyoung chip , jang
- // visual stdio 2019 ( c++11 >= )
- //
- #include <iostream>
- enum class test1 {
- t1,
- t2,
- t3
- };
- enum class test2 : char {
- t1 = 'a',
- t2 = 'b',
- t3 = 'c'
- };
- int main()
- {
- printf("enum class test1 = %d \n", test1::t1);
- printf("enum class test1 : char = %c ", test2::t1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement