i want to input a date and display in this format: 08 march, 2002. and also display error massage if date is out of range. so i use function printdate().i've tried this program and haven't finished yet...so pleasee tell me the mistake and what should i do next...thank u for you attention#include<iostream.h>
#include<stdio.h>
void printdate();
int main()
{
int dd,mm,yy;
enum month {january=1;february,march,april,may,june,july,augu stus,september,october,november,december};
cout<<"input a date";
cin>>dd;
cout<<endl;
cout<<"input the day:";
cin>>mm;
cout<<endl;
cout<<"input the month:";
cin>>yy;
cout<<endl;
cout<<"input the year:";
getchar();
}
int printdate(int x, int y, int z)
{
if(mm>12)
cout<<"check the date again";
else