Untitled
raw download clone
TEXT
views 44
,
size 838 b
event.cpp

#include #include "event.h"
using namespace std;

void Event::load()
{
cout< cin>>name;
cout< cin>>day;
cout< cin>>month;
cout< cin>>year;
cout< cin>>hour;
cout< cin>>minutes;
}

void Event::show()
{
cout< <<" "< }

Event::Event(string n,int d,int m,int y,int h,int mins)
{
name=n;
day=d;
month=m;
year=y;
hour=h;
minutes=mins;
}

Event::~Event()
{
cout< cout<<" kasuje obiekty, slowa przepraszam nie uzywam";
}

13:48
event.h

#include
using namespace std;

class Event
{
int day, month, year;
int hour, minutes;
string name;

public:

Event(string="brak",int=1,int=1,int=2015,int=12,int=0);
~Event();
void load();
void show();
};

13:49
mail.cpp

#include #include "event.h"
using namespace std;

int main()
{
Event w1("apokalipsa");

w1.show();

return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.