From c630bf30ef038da6bdacd7fd60c49cc7657e7f44 Mon Sep 17 00:00:00 2001 From: "laba34 (BuntovaMS)" Date: Mon, 2 Jun 2025 12:06:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0c08a6a..5374a3e 100644 --- a/main.cpp +++ b/main.cpp @@ -37,9 +37,18 @@ Input input_data(std::istream& in, bool prompt) return data; } -int main() { +int main(int argc, char* argv[]){ curl_global_init(CURL_GLOBAL_ALL); using namespace std; + if (argc > 1) + { + cout << "argc = " << argc << endl; + for (int i = 0; i < argc; ++i) + { + cout << "argv[" << i << "] = " << argv[i] << endl; + } + return 0; + } auto in = input_data(cin,true); auto bins = make_histogram(in.bin_count, in.numbers); show_histogram_svg(bins);