Content deleted Content added
→Avoid branching: Off by one error Tags: Mobile edit Mobile web edit |
|||
Line 38:
inline bool Has30Days(int m) {
static const bool T[] = { 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0 };
return T[m-1];
}
</source>
|