#include <iostream>
using namespace std;
class Date {
int mo, da, yr;
public:
Date(int m, int d, int y) {
mo = m; da = d; yr = y;
}
friend ostream& operator<<(ostream& out, const Date& dt) {
out << dt.mo << '/' << dt.da << '/' << dt.yr;
return out;
}
};
int main() {
Date dt(5, 6, 92);
cout << dt;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: