2019-06-06 15:38:17 +02:00
|
|
|
#include "Wycieczka.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <string>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
Wycieczka::Wycieczka(int id, string m, string o, string d, int c)
|
|
|
|
{
|
|
|
|
id_w=id;
|
|
|
|
miejsce_w=m;
|
|
|
|
data_od=o;
|
|
|
|
data_do=d;
|
|
|
|
cena_w=c;
|
|
|
|
}
|
|
|
|
|
2019-06-06 16:19:12 +02:00
|
|
|
void Wycieczka::DodajWycieczke(vector<Wycieczka*> &lista)
|
2019-06-06 15:38:17 +02:00
|
|
|
{
|
2019-06-06 16:00:30 +02:00
|
|
|
lista.push_back(this);
|
2019-06-06 15:38:17 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-06-06 16:19:12 +02:00
|
|
|
void Wycieczka::UsunWycieczke(vector<Wycieczka*> &lista)
|
2019-06-06 15:38:17 +02:00
|
|
|
{
|
2019-06-06 16:19:12 +02:00
|
|
|
lista.erase((char*)remove(lista.begin(), lista.end(), this), lista.end());
|
2019-06-06 15:38:17 +02:00
|
|
|
}
|