Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : TRYNDATE.CPP
#include
#include "newdate.h"
void main(void)
{
new_date now, later, birthday;
later.set_date(12, 31, 1991);
birthday.set_date(2, 19, 1991);
cout << "Today is day " << now.get_day_of_year() << "\n";
cout << "Dec 31 is day " << later.get_day_of_year() << "\n";
cout << "Feb 19 is day " << birthday.get_day_of_year() << "\n";
}
// Result of execution
// Today is day 20
// Dec 31 is day 365
// Feb 19 is day 50
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/