jojopi wrote: ↑
Thu Jun 17, 2021 12:28 pm
Are we actively trying to be unhelpful? (Especially Heydt.)
The question as posted is not clear.
Is it about returning a true of false from some function?
Or is it about returning an exit code from the entire program that indicates leap year or not?
Or why is the expected input of such a limited range of years, according to the example code given?
Or, is this homework exercise even about leap years at all? Maybe it's about one of the above, or something else.
This needs clarification from the OP before a sensible solution can be suggested.
Memory in C++ is a leaky abstraction .