-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.cpp
38 lines (31 loc) · 931 Bytes
/
example.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
#include "dilami_calendar.h"
using namespace std;
int main(){
DilamiCalendar dc(1400, 1, 5);
cout << "Dilami Day: " << dc.getDilamiDay() << endl;
cout << "Dilami Month: " << dc.getDilamiMonth() << endl;
cout << "Dilami Year: " << dc.getDilamiYear() << endl;
cout << endl;
cout << "Is " << dc.getDilamiYear() << " leap year? " << endl;
if (dc.isLeap(false)){
cout << "Yes!" << endl;
}
else{
cout << "No!" << endl;
}
cout << endl;
cout << "Jalali Day: " << dc.getJalaliDay() << endl;
cout << "Jalali Month: " << dc.getJalaliMonth() << endl;
cout << "Jalali Year: " << dc.getJalaliYear() << endl;
cout << endl;
cout << "Is " << dc.getJalaliYear() << " leap year? " << endl;
if (dc.isLeap(true)){
cout << "Yes!" << endl;
}
else{
cout << "No!" << endl;
}
cout << endl;
return 0;
}