Created
April 27, 2020 02:35
-
-
Save domiyanyue/dc98be0138630000804d07d0fa87cb70 to your computer and use it in GitHub Desktop.
example struct enum compilation explain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Point { | |
int x; | |
int y; | |
}; | |
enum Color { black = 0, white = 1, grey = 2}; | |
Point p; | |
Color c = Color::black; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment