You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
Tip: if you are confused by the gender::female syntax, look up enum classes or ask a medior.
// 67 - A player has a gender
{
player p; // players are female by default so we don't have to specify every timeassert(p.get_gender() == gender::female);
p = player(gender::male); // but gender can be set at constructionassert(p.get_gender() == gender::male);
p.set_gender(gender::female); // gender can be set e.g. through optionsassert(p.get_gender() == gender::female);
}
The text was updated successfully, but these errors were encountered:
A player has a gender, either male or female.
Tip: if you are confused by the
gender::female
syntax, look upenum
classes or ask a medior.The text was updated successfully, but these errors were encountered: