Kajetan Johannes Hammerle 4 jaren geleden
commit
1a8ed389dc
9 gewijzigde bestanden met toevoegingen van 53 en 0 verwijderingen
  1. 1 0
      .gitignore
  2. 6 0
      bubble_sort/Main.cpp
  3. 7 0
      bubble_sort/Makefile
  4. 6 0
      couting_sort/Main.cpp
  5. 7 0
      couting_sort/Makefile
  6. 6 0
      merge_sort/Main.cpp
  7. 7 0
      merge_sort/Makefile
  8. 6 0
      selection_sort/Main.cpp
  9. 7 0
      selection_sort/Makefile

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+sort

+ 6 - 0
bubble_sort/Main.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main() {
+    std::cout << "Test\n";
+    return 0;
+}

+ 7 - 0
bubble_sort/Makefile

@@ -0,0 +1,7 @@
+FLAGS = -Wall -Wextra -pedantic -Werror -O3
+
+run: build
+	./sort
+
+build: Main.cpp
+	g++ -o sort Main.cpp ${FLAGS}

+ 6 - 0
couting_sort/Main.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main() {
+    std::cout << "Test\n";
+    return 0;
+}

+ 7 - 0
couting_sort/Makefile

@@ -0,0 +1,7 @@
+FLAGS = -Wall -Wextra -pedantic -Werror -O3
+
+run: build
+	./sort
+
+build: Main.cpp
+	g++ -o sort Main.cpp ${FLAGS}

+ 6 - 0
merge_sort/Main.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main() {
+    std::cout << "Test\n";
+    return 0;
+}

+ 7 - 0
merge_sort/Makefile

@@ -0,0 +1,7 @@
+FLAGS = -Wall -Wextra -pedantic -Werror -O3
+
+run: build
+	./sort
+
+build: Main.cpp
+	g++ -o sort Main.cpp ${FLAGS}

+ 6 - 0
selection_sort/Main.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main() {
+    std::cout << "Test\n";
+    return 0;
+}

+ 7 - 0
selection_sort/Makefile

@@ -0,0 +1,7 @@
+FLAGS = -Wall -Wextra -pedantic -Werror -O3
+
+run: build
+	./sort
+
+build: Main.cpp
+	g++ -o sort Main.cpp ${FLAGS}