Skip to main content
5 events
when toggle format what by license comment
Oct 18, 2020 at 20:07 history edited Rish CC BY-SA 4.0
improved answer
Oct 18, 2020 at 19:04 comment added Daniel Schepler On the topic of letting methods be default: you could also use default values for fields in Date and then let the constructor be default. e.g. unsigned int month = 1; unsigned int day = 1; unsigned int year = 1970; and then Date() = default;
Oct 17, 2020 at 18:18 vote accept theProgrammer
Oct 17, 2020 at 9:01 comment added theProgrammer Firstly, I appreciate the review. Wouldn't the vector introduce performance issues e.g when the books mostly added starts with letter 'A'... You would have to perform sorting always with O(n) or whatever complexity it takes but list is guaranteed to be O(1)
Oct 17, 2020 at 7:43 history answered Rish CC BY-SA 4.0