mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-17 23:23:43 +02:00
ca61ca4f57
Add a number of slides that cover most of CXX's functionality and demonstrate how it can be used. Fixes #823. --------- Co-authored-by: Martin Geisler <mgeisler@google.com>
12 lines
284 B
C++
12 lines
284 B
C++
// This file contains various code snippets taken from the CXX book and
|
|
// tutorial. Some have been modified to fit the course better.
|
|
|
|
// ANCHOR: shared_enums_cpp
|
|
enum class Suit : uint8_t {
|
|
Clubs = 0,
|
|
Diamonds = 1,
|
|
Hearts = 2,
|
|
Spades = 3,
|
|
};
|
|
// ANCHOR_END: shared_enums_cpp
|