Add boilerplate code.
This commit is contained in:
parent
8856ecba0b
commit
fd03f5561f
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM gcc:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY bin/Bowling /app/
|
||||
|
||||
CMD ["./Bowling"]
|
13
Include/FileReader.h
Normal file
13
Include/FileReader.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef FILEREADER_H
|
||||
#define FILEREADER_H
|
||||
|
||||
class FileReader {
|
||||
public:
|
||||
FileReader();
|
||||
|
||||
~FileReader();
|
||||
|
||||
char *Read();
|
||||
};
|
||||
|
||||
#endif
|
27
makefile
Normal file
27
makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# Makefile for hello.c
|
||||
|
||||
CC = g++
|
||||
CFLAGS = -O2
|
||||
|
||||
SRC_DIR = src
|
||||
BUILD_DIR = build
|
||||
BIN_DIR = bin
|
||||
EXECUTABLE = Bowling
|
||||
|
||||
# Create directories
|
||||
$(shell mkdir -p $(BUILD_DIR) $(BIN_DIR))
|
||||
|
||||
SOURCES = $(wildcard $(SRC_DIR)/*.cpp)
|
||||
OBJECT_FILES = $(SOURCES:$(SRC_DIR)/%.cpp=$(BUILD_DIR)/%.o)
|
||||
|
||||
$(BIN_DIR)/$(EXECUTABLE): $(OBJECT_FILES)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.cpp
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
run:
|
||||
$(BIN_DIR)/$(EXECUTABLE)
|
||||
|
||||
clean:
|
||||
rm -f $(BUILD_DIR)/*.o $(BIN_DIR)/*
|
9
src/FileReader.cpp
Normal file
9
src/FileReader.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include "../Include/FileReader.h"
|
||||
#include <iostream>
|
||||
|
||||
FileReader::FileReader() {};
|
||||
FileReader::~FileReader() {};
|
||||
|
||||
char *FileReader::Read(){
|
||||
return nullptr;
|
||||
}
|
7
src/main.cpp
Normal file
7
src/main.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user