From 371cee37587c0cfdfc8bf1b109869fe64e4232ef Mon Sep 17 00:00:00 2001 From: victoriaCS Date: Mon, 29 Sep 2025 21:26:30 +0300 Subject: [PATCH] . --- main.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index d4689b4..bf80479 100644 --- a/main.cpp +++ b/main.cpp @@ -20,7 +20,7 @@ Input input_data(istream& in, bool prompt=false) { } in >> number_count; - Input result; // Объявляем переменную типа Input, которую будем возвращать + Input result; // Îáúÿâëÿåì ïåðåìåííóþ ГІГЁГЇГ  Input, êîòîðóþ áóäåì âîçâðàùàòü result.numbers.resize(number_count); for (size_t i = 0; i < number_count; ++i) { @@ -30,12 +30,19 @@ Input input_data(istream& in, bool prompt=false) { cerr << "Enter bin count: "; } in >> result.bin_count; - return result; // Возвращаем заполненную структуру Input + return result; } -int main(){ +int main(int argc, char* argv[]){ + if (argc > 1){ + cout << "argc= " << argc << endl; + for (int i = 0; i < argc; i++){ + cout << "argv[" << i << "] = " << argv[i] << endl; + } + return 0; + } if (curl_global_init(CURL_GLOBAL_ALL)!=0){ cerr << "failed cURL" << endl; return 1;