From 6e057edf3b59e59dd3890d51dac8e4c117ac9166 Mon Sep 17 00:00:00 2001 From: "Dima (AntonovDA)" Date: Wed, 8 May 2024 16:51:17 +0300 Subject: [PATCH] =?UTF-8?q?code:=20+=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=B0=20argv=20=D0=B8=20ar?= =?UTF-8?q?gc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- l03.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/l03.cpp b/l03.cpp index cdd9615..62d1df2 100644 --- a/l03.cpp +++ b/l03.cpp @@ -60,8 +60,28 @@ input_data(istream& in, bool promt) return input; } -int main() +int +main(int argc, char* argv[]) { + + if( argc > 1 ){ + + CURL* curl = curl_easy_init(); + + cout << argc << '\n'; + //while (true) + for (int i = 0; i < argc; i++){ + + cout << argv[i] << " "; + } + cout << endl; + + curl_easy_cleanup(curl); + + + return 0; + } + curl_global_init(CURL_GLOBAL_ALL); auto input = input_data(cin, true);