S3_Cpp/Aufg4/CrimeStats.h

28 lines
585 B
C++

#ifndef CRIMESTATS_H
#define CRIMESTATS_H
#include <string>
#include <vector>
typedef struct CRIME{
std::string cdatetime;
std::string address;
std::string district;
std::string beat;
std::string grid;
std::string crimedescription;
std::string ucr_ncic_code;
std::string latitude;
std::string longitude;
} Crime;
void split(const std::string& s, char c,std::vector<std::string>& v);
void Aufg4Main();
std::string readFile(std::string &filename, std::vector<Crime*> &allCrimes);
Crime* stringToCrime(std::string &input);
#endif //CRIMESTATS_H