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;