MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / Month

Enum Month

project_euler_problems/CountingSundays/solution.cpp:7–11  ·  view source on GitHub ↗

using enum here so that we can use descriptive month names instead of numbers 0, 1, ... 11 when accessing array of days per month

Source from the content-addressed store, hash-verified

5// month names instead of numbers 0, 1, ... 11 when
6// accessing array of days per month
7enum Month
8{
9 Jan, Feb, Mar, Apr, May,Jun,
10 Jul, Aug, Sep, Oct, Nov, Dec
11};
12
13// lets us use descriptive names for day of the week
14enum DayOfWeek

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected