From 7f7a743b6917df08e02c5772b06a07e6876203aa Mon Sep 17 00:00:00 2001 From: Max Westerlund Date: Sun, 29 Jun 2025 00:37:08 +0200 Subject: [PATCH] new file: .gitignore new file: compile.bat new file: main.cpp new file: run.bat --- .gitignore | 24 ++++++++++++++++++++++++ compile.bat | 2 ++ main.cpp | 6 ++++++ run.bat | 4 ++++ 4 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 compile.bat create mode 100644 main.cpp create mode 100644 run.bat diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28fccdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Ignore build output folders +bin/ +build/ +out/ + +# Ignore compiled object files and binaries +*.obj +*.o +*.exe +*.dll + +# Ignore Visual Studio files +.vscode/ +*.user +*.suo + +# Ignore temporary files +*.log +*.tmp +*.bak + +# Ignore system files +.DS_Store +Thumbs.db diff --git a/compile.bat b/compile.bat new file mode 100644 index 0000000..640c076 --- /dev/null +++ b/compile.bat @@ -0,0 +1,2 @@ +@echo off +clang++ -std=c++17 -Wall -Wextra -O2 main.cpp -o bin\program.exe diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..40c4f3b --- /dev/null +++ b/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "run"; + return 0; +} \ No newline at end of file diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..75e29e2 --- /dev/null +++ b/run.bat @@ -0,0 +1,4 @@ +@echo off +call .\compile.bat +.\bin\program.exe +echo. \ No newline at end of file