Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added compile/main
Binary file not shown.
11 changes: 11 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

g++ -std=c++17 src/main.cpp -o compile/main

if [ $? -eq 0 ]; then
echo "Compilation successful. Running the program..."

./compile/main
else
echo "Compilation failed."
fi
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}