MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / month

Function month

Exercises/NoModules/Chapter 08/Soln8_01.cpp:55–60  ·  view source on GitHub ↗

Reads the month

Source from the content-addressed store, hash-verified

53
54// Reads the month
55int month()
56{
57 const int low_month {1};
58 const int high_month {12};
59 return validate_input(low_month, high_month, "a month number");
60}
61
62// Reads in the date in the given month and year
63int date(int month_number, int year)

Callers 1

mainFunction · 0.70

Calls 1

validate_inputFunction · 0.70

Tested by

no test coverage detected