19 lines
No EOL
293 B
C++
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;
|
|
} |