2026-27-cpp-homework/feladat4/feladat4/main.cpp
Damimani a1dbab091d v3
2026-11-01 18:48:06 +01:00

19 lines
No EOL
293 B
C++

//Tóth Dániel Mátyás | IFPQYY | V3
#include <exception>
#include <iostream>
#include "cmydateexception.h"
#include "cmydate.h"
using namespace std;
int main() {
CMyDate date;
try
{
date.IsValid(1969, 0, 0);
}
catch (const CMyDateException& e)
{
cout << e.what();
}
return 0;
}