summaryrefslogtreecommitdiff
path: root/6p26.cpp
diff options
context:
space:
mode:
Diffstat (limited to '6p26.cpp')
-rw-r--r--6p26.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/6p26.cpp b/6p26.cpp
new file mode 100644
index 0000000..8ad89da
--- /dev/null
+++ b/6p26.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+#include <iterator>
+
+/*
+ *
+ * 6.26
+ *
+ * Honestly not sure what i was meant to do for this exercise so
+ * ill just print the arguments we give the program.
+ */
+
+int main (int argc, char **argv) {
+
+ if(argc < 1) {
+ return -1;
+ }
+
+ for(size_t i = 1 ; argv[i] != 0 ; i++) {
+ std::cout << argv[i] << std::endl;
+ }
+
+ return 0;
+}