Skip to content

Instantly share code, notes, and snippets.

View Chuong2102's full-sized avatar

Chương Chuong2102

View GitHub Profile
@krysseltillada
krysseltillada / date.cpp
Last active October 17, 2021 05:51
c++ date class
//update:
/// this is just some exercise code in the book i study so i thought it could be useful to some people about the methods in the code
/// changes:
/// added:
/// class operator function Date operator(Date&) - with this you can now assign a date object to another date object
/// class JulianDate: methods ->> object.jdatedisplay() - displays the julian date
//// ->> object.Date(); - converts and diplays the julian date to gregorian date
/// ->> overloaded constructor -> JulianDate(int month, int day, int year); expects to have the values
//// and converts to julian date
///