#include<iostream.h>
#include<conio.h>
void fun(int d,int m,int y)
{
d++;
y=y+m;
cout<<"\n";
cout<<d<<"-"<<m<<"-"<<y;
cout<<"\n\t";
}
void main()
{
clrscr();
struct dob
{
int da,mo,ye;
}var;
cout<<"\n";
cout<<"enter date";
cin>>var.da;
cout<<" -";
cin>>var.mo;
cout<<" -";
cin>>var.ye;
fun(var.da,var.mo,var.ye);
cout<<"\t\n\n";
cout<<var.da<<"-"<<var.mo<<"-"<<var.ye;
getch();
}
#include<conio.h>
void fun(int d,int m,int y)
{
d++;
y=y+m;
cout<<"\n";
cout<<d<<"-"<<m<<"-"<<y;
cout<<"\n\t";
}
void main()
{
clrscr();
struct dob
{
int da,mo,ye;
}var;
cout<<"\n";
cout<<"enter date";
cin>>var.da;
cout<<" -";
cin>>var.mo;
cout<<" -";
cin>>var.ye;
fun(var.da,var.mo,var.ye);
cout<<"\t\n\n";
cout<<var.da<<"-"<<var.mo<<"-"<<var.ye;
getch();
}