summaryrefslogtreecommitdiff
path: root/structures/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'structures/run.sh')
-rwxr-xr-xstructures/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/structures/run.sh b/structures/run.sh
new file mode 100755
index 0000000..f076a51
--- /dev/null
+++ b/structures/run.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+name="${1%%.*}"
+g++ -Wall -o $name.out $name.cpp
+./$name.out
+rm $name.out
+