From 24050391ae1d1a64af6825b51d7460f4d08285f9 Mon Sep 17 00:00:00 2001 From: KhodiukMR Date: Mon, 13 May 2024 16:08:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D1=8B=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommonVar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CommonVar.cpp b/CommonVar.cpp index 90e3faf..f7bf6c3 100644 --- a/CommonVar.cpp +++ b/CommonVar.cpp @@ -38,8 +38,14 @@ vector MakeHistogram(vector Numbers, size_t BinCount, double& Ma void ShowHistogrammText(vector Bins); -int main() { +int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); + if (argc > 1) { + for (size_t i = 0; i < argc; i++) { + cout << "arcv[" << i << "] = " << argv[i] << endl; + } + return 0; + } double MaxCount = 0; Input in = InputData(cin, true); vector Bins(in.BinCount);