Merge pull request #214 from aadiljaleel/213_fix_enum

fixes syntax bug in enum README.md by changing r2 to Color2
This commit is contained in:
Francis
2022-10-28 15:31:43 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ enum class Color2
YELLOW,
BLUE
};
r2 c2 = Color2::RED;
Color2 c2 = Color2::RED;
cout << static_cast<int>(c2) << endl; //必须转!
```

View File

@@ -85,7 +85,7 @@ enum class Color2
YELLOW,
BLUE
};
r2 c2 = Color2::RED;
Color2 c2 = Color2::RED;
cout << static_cast<int>(c2) << endl; //
```