Program to display date ♥
#include<iostream.h>
#include<conio.h>
class member
{
public:
int day(int d)
{
return d;
}
int month(int m)
{
return m;
}
int year(int y)
{
return y;
}
};
void main()
{
clrscr();
member m1;
cout<<"\n\t"<<m1.day(26)<<":"<<m1.month(7)<<":"<<m1.year(2013)<<endl;
getch();
}
Here is the Output :)
No comments:
Post a Comment