listed below is my program. HEre is what i need to do:
1. Write a program to calculate the number of days between two dates. Each date is represented by three integers: day, month, and year. Minimum requirements: you are not required to determine leap years; this is, you may consider that February always has 28 days. A leap year is one whose number is exactly divisible by four. Century years, however, are only leap years if they are exactly divisible by 400. Hence 1900 was not a leap year but 2000 was.

I need help with year as well.
But what is wrong with my program.

Please help!



here is my program:
//Rob Gross
//Recursive
//3/13/02

#include<iostream.h>

int largest (int *num, int n)
{
int larg=*num;
if (n>1)
{
cout << "Entering function with n=" << n << " and element of the array=" << *num << endl;
larg=largest(&num[1], --n);
cout << "The largest element within the " << n << " last elements is " << larg << endl;
if (*num>larg)
larg=*num;
num++;
}
return larg;
}

void main()
{
int num[10]={23,19,5,2,8,13,3,20,15,18};
int n=10;
cout << endl << "The largest element of " << n << " elements is " << largest(num, 10) << endl ;
}