//Write a program to input date and print on the screen by using Class
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
class edate()
{
private:
int y, m, d;
public:
void gdate (void)
{
cout<<"Please Enter Year = ";
cin>>y;
cout<<"Please Enter Month = ";
cin>>m;
cout<<"Please Enter Date = ";
cin>>d;
}
void pdate (void)
{
cout<<"Date is :":
cout<<d <<" / "<<m<<" / "<<y;
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
class edate
{
private:
int y, m, d;
public:
void gdate (void)
{
cout<<"Please Enter Year = ";
cin>>y;
cout<<"Please Enter Month = ";
cin>>m;
cout<<"Please Enter Date = ";
cin>>d;
}
void pdate (void)
{
cout<<"Date is :";
cout<<d <<" / "<<m<<" / "<<y;