#include<iostream>
#include<string>
usingnamespace std;
struct date
{
int month;
int day;
int year;
};
int days(date);
main()
{
date dt = { 1, 26, 2015 };
cout << "The number of days passed after 1900 is: " << days(dt)<<endl;
system("pause");
return 0;
}
int days(date temp)
{
return ((temp.day - 1) + 30 * (temp.month - 1) + 360 * (temp.year - 1900));
}