g*********g 发帖数: 114 | 1 DiffYear (int year1,int year2)
{
Int year = year1 - year2;
return year
}
DiffMonth(int month1,int month2)
{
int month = month1-month2;
return month;
}
DiffDay(int day1, int day2)
{
int day = day1-day2;
return day;
}
int main
{
System.output(DiffYear(2011,2009)*365+DiffMonth(11,10)* 30+ DiffDay(30,29
))
} |
|