From 70878e5c5b4552def51082829032780c536dc59d Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 9 Sep 2024 20:25:43 +0200 Subject: more --- 6p26.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 6p26.cpp (limited to '6p26.cpp') 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 +#include + +/* + * + * 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; +} -- cgit v1.2.3