From d922fa408ae3adf04a7fe63c8ba93e9f148a217b Mon Sep 17 00:00:00 2001 From: GordiyevskikDA Date: Sun, 14 Apr 2024 07:03:32 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=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=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LABA1.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LABA1.cpp b/LABA1.cpp index aad8f4e..7e6d11f 100644 --- a/LABA1.cpp +++ b/LABA1.cpp @@ -79,8 +79,14 @@ Input input_data() { return in; }; -int main() +int main(int argc, char* argv[]) { + if (argc > 1) { + for (int i = 0; i < argc; i++) { + cout << "argv[" << i << "] = " << argv[i] << endl; + } + return 0; + } curl_global_init(CURL_GLOBAL_ALL); Input in = input_data(); vector chart = MakeHistogram(in.marks, in.NCharts);