From e034e80ec591da19b5e8ff4db438b3c8a5978c67 Mon Sep 17 00:00:00 2001 From: FilippovaYI Date: Sun, 26 May 2024 14:56:19 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index f4b6d75..94f5b04 100644 --- a/main.cpp +++ b/main.cpp @@ -45,7 +45,12 @@ input_data(istream& in, bool prompt) { } int -main(){ +main(int argc, char* argv[]){ + if (argc>1){ + cout << argc; + cout << argv[0]; + return 0; + } curl_global_init(CURL_GLOBAL_ALL); auto in = input_data(cin,true); auto bins = make_histogram(in.numbers, in.bin_count);