Converting Calendar in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Converting Calendar in c++

hi I have a problem with converting calendars. my teacher told me to make a program with c + + to convert the Gregorian calendar, Islamic (hijri) calender, Iranian ( Persian ) calender to each other. Any suggestions?

13th Nov 2018, 7:05 AM
Abolhasan Ashori
Abolhasan Ashori - avatar
1 Answer
+ 4
It's not an easy task at all. There are various parameters that must come into play in order to make everything works correctly. Also, you need to do a lot of research to get to know how Solar Hijri Calendar works (especially calculating the leap years and astronomical concepts). For the most part, calendars are available as separate libraries rather than a program. At the time I was looking for one for my Android project, I came up with a library that had been written in C. Here is a simplified C++ version of it. Of course, you need to take your time to understand it. [https://en.wikipedia.org/wiki/Solar_Hijri_calendar] https://code.sololearn.com/cG6iCDXEk2eF
13th Nov 2018, 7:54 AM
Babak
Babak - avatar