Fix include folder name, update dockerfile and compile the executable inside the docker container
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#ifndef FILEHELPER_H
|
||||
#define FILEHELPER_H
|
||||
|
||||
class FileHelper {
|
||||
public:
|
||||
FileHelper();
|
||||
|
||||
~FileHelper();
|
||||
|
||||
static bool FileExists(char *path);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef FILEREADER_H
|
||||
#define FILEREADER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class FileReader {
|
||||
public:
|
||||
FileReader();
|
||||
|
||||
~FileReader();
|
||||
|
||||
static std::string GetFile(char *path);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef NUMBERHELPER_H
|
||||
#define NUMBERHELPER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class NumberHelper {
|
||||
public:
|
||||
NumberHelper();
|
||||
|
||||
~NumberHelper();
|
||||
|
||||
static vector<int> GetNumbers(string csv);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef PRINTFRAMES_H
|
||||
#define PRINTFRAMES_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class PrintFrames {
|
||||
public:
|
||||
PrintFrames();
|
||||
|
||||
~PrintFrames();
|
||||
|
||||
static void PrintHeader(vector<int> rolls);
|
||||
static void PrintValue(vector<int> rolls);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef SCORECALCULATOR_H
|
||||
#define SCORECALCULATOR_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class ScoreCalculator {
|
||||
public:
|
||||
ScoreCalculator();
|
||||
|
||||
~ScoreCalculator();
|
||||
|
||||
static int GetScore(vector<int> rolls);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user