Cette leçon est en anglais pour le moment.
Your own types
A player has a name and a score. A reward can be points, a badge or nothing at all. Structs and enums let you say exactly that, and the compiler holds you to it.
Cette leçon est en anglais pour le moment.
A player has a name and a score. A reward can be points, a badge or nothing at all. Structs and enums let you say exactly that, and the compiler holds you to it.