#ifndef CRIMESTATS_H #define CRIMESTATS_H #include #include 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; class CRIMESTATS { public: std::vector crimes; int countCrimes(); std::string getMostCommonCrime(); std::string getMostDangerousDistrict(); std::vector *getDuplicateAdresses(); }; bool isInVector(std::string& str, std::vector* vec); void split(const std::string& s, char c,std::vector& v); void Aufg4Main(); std::string readFile(std::string &filename, std::vector &allCrimes); Crime* stringToCrime(std::string &input); #endif //CRIMESTATS_H