2019-06-06 15:38:17 +02:00
|
|
|
#include "ListaWycieczka.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <string>
|
|
|
|
#include <stdlib.h>
|
|
|
|
using namespace std;
|
|
|
|
|
2019-06-06 16:00:30 +02:00
|
|
|
void ListaWycieczka::Wypisz_liste(string nazwa_pliku)
|
2019-06-06 15:38:17 +02:00
|
|
|
{
|
|
|
|
fstream plik;
|
|
|
|
string slowo;
|
|
|
|
plik.open(nazwa_pliku, ios::in);
|
|
|
|
if(plik.good()==true)
|
|
|
|
{
|
|
|
|
while(!plik.eof())
|
|
|
|
{
|
|
|
|
getline(plik,slowo,',');
|
|
|
|
cout<<slowo<<" ";
|
|
|
|
}
|
|
|
|
cout<<"\n";
|
|
|
|
plik.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|