Computer Science, asked by zahidaffan72, 3 months ago

Create a class Event with following variables: char* event_name, char* event_venue, char event_date[11] and char event_time[9].
Input format for event_date: dd-mm-yyyy
Input format for event_time: hh:mm am/pm​

Answers

Answered by 2PaVaN4
1

Answer:

#include<iostream.h>

#include<conio.h>

#include<iomanip.h>

class Event

{ char event_name, event_venue, event_date[11], event_time[9] ;

public : void getdata()

{ cout<<"Enter event date in DD-MM-YY

format :"<<endl; cin>>event_date;

cout<<"Enter event time in HH:MM

format :"<<endl; cin>>event_time;

}

};

void main()

{ Event e; clrscr();

e.getdata();

getch();

}

USED CODING LANGUAGE : C++

Similar questions