From 8873d07948ab66f0b8ca9cdc4d2030eb55e61905 Mon Sep 17 00:00:00 2001 From: LykovaYA Date: Thu, 21 Nov 2024 21:44:09 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B2=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab34.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lab34.cpp b/lab34.cpp index 0f095cb..aed2b30 100644 --- a/lab34.cpp +++ b/lab34.cpp @@ -30,7 +30,13 @@ input_data(istream& inn, bool promt) { return in; } -int main() { +int main(int argc, char* argv[]) { + if (argc > 1) { + for (int i = 0; i < argc; i++) { + cout << "argv [" << i << "] = " << argv[0] << endl; + } + return 0; + } curl_global_init(CURL_GLOBAL_ALL); bool promt = true; Input in = input_data(cin, promt);