#include <iostream>
#include <iostream>
class EventDate
{
private:
short m_day;
short m_month;
short m_year;
public:
EventDate(short day, short month, short year)
: m_day(day), m_month(month), m_year(year) {}
void print()
{
std::cout << m_day << "/" << m_month << "/" << m_year;
}
};
int main()
{
EventDate event { 18, 12, 2023 }; // Use short values for day, month, and year
event.print(); // Calls the print method for the event object
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9zdHJlYW0+CgpjbGFzcyBFdmVudERhdGUKewpwcml2YXRlOgogICAgc2hvcnQgbV9kYXk7CiAgICBzaG9ydCBtX21vbnRoOwogICAgc2hvcnQgbV95ZWFyOwoKcHVibGljOgogICAgRXZlbnREYXRlKHNob3J0IGRheSwgc2hvcnQgbW9udGgsIHNob3J0IHllYXIpCiAgICAgICAgOiBtX2RheShkYXkpLCBtX21vbnRoKG1vbnRoKSwgbV95ZWFyKHllYXIpIHt9CgogICAgdm9pZCBwcmludCgpCiAgICB7CiAgICAgICAgc3RkOjpjb3V0IDw8IG1fZGF5IDw8ICIvIiA8PCBtX21vbnRoIDw8ICIvIiA8PCBtX3llYXI7CiAgICB9Cn07CgppbnQgbWFpbigpCnsKICAgIEV2ZW50RGF0ZSBldmVudCB7IDE4LCAxMiwgMjAyMyB9OyAvLyBVc2Ugc2hvcnQgdmFsdWVzIGZvciBkYXksIG1vbnRoLCBhbmQgeWVhcgogICAgZXZlbnQucHJpbnQoKTsgLy8gQ2FsbHMgdGhlIHByaW50IG1ldGhvZCBmb3IgdGhlIGV2ZW50IG9iamVjdAoKICAgIHJldHVybiAwOwp9Cg==