From 19a45b8ba9e6229b31f823dfa1efa9ee7b29dea9 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 30 May 2020 19:47:08 +0800 Subject: [PATCH] add cout args --- single_file_tests/hello_main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/single_file_tests/hello_main.cc b/single_file_tests/hello_main.cc index 61338d2..b0a6f2a 100644 --- a/single_file_tests/hello_main.cc +++ b/single_file_tests/hello_main.cc @@ -3,5 +3,8 @@ // compile: c++ --std=c++17 hello_main.cc auto main(int argc, char** argv) -> int { std::cout << "hello, have: " << argc << " args" << std::endl; + for (int i = 0; i < argc; i++) { + std::cout << " - " << argv[i] << std::endl; + } }