From 6f946f7f9b6e348f516726146c7fd6c361df1f00 Mon Sep 17 00:00:00 2001 From: EfimovaLA Date: Sun, 2 Jun 2024 19:14:46 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D1=8B=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20main=20=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B0=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- main.cpp | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e50b0e7..ed24528 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ lb.depend lb.layout unittest.depend curl/ -main.o \ No newline at end of file +main.o +unittest.layout diff --git a/main.cpp b/main.cpp index 8d49b18..0c11a8f 100644 --- a/main.cpp +++ b/main.cpp @@ -40,8 +40,17 @@ Input input_data(istream& stream, bool prompt) } -int main() +int main(int argc, char* argv[]) { + if (argc > 1){ + auto i = 0; + while (i < argc){ + cerr << "arg[" << i << "] = " << argv[i] << endl; + i++; + } + return 0; + } + curl_global_init(CURL_GLOBAL_ALL); bool prompt = true; auto in = input_data(cin, prompt);