From 02e7e15bdc8f36f08e90f69096a4cb93006885e8 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 8 Sep 2026 12:31:17 +0000 Subject: add argument helper --- module-test/argument_printer.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 module-test/argument_printer.cc (limited to 'module-test/argument_printer.cc') diff --git a/module-test/argument_printer.cc b/module-test/argument_printer.cc new file mode 100644 index 0000000..8b8c6c3 --- /dev/null +++ b/module-test/argument_printer.cc @@ -0,0 +1,13 @@ +// print all arguments +// $ g++ module-test/argument_printer.cc -std=c++23 + +#include + +using namespace std; + +int main(int argc, char **argv) +{ + for (int i = 0; argv[i] != nullptr; i++) + cout << argv[i] << endl; + return 0; +} -- cgit v1.3.1-4-g156e