From 1310ab46630941b1319ce1df97de697e9e550fec Mon Sep 17 00:00:00 2001 From: IvanonVG Date: Sat, 24 May 2025 23:22:11 +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=D1=8B=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.cpp | 3 +-- lab03.cbp | 5 +++++ main.cpp | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/histogram.cpp b/histogram.cpp index 9a04267..77ef532 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,4 +1,4 @@ -#include "histogram.h" + #include "histogram.h" #include using namespace std; @@ -33,4 +33,3 @@ vector make_histogram(vector numbers, size_t bin_count) { } return bins; } - diff --git a/lab03.cbp b/lab03.cbp index a413538..3ab87bf 100644 --- a/lab03.cbp +++ b/lab03.cbp @@ -31,7 +31,12 @@ + + + + + diff --git a/main.cpp b/main.cpp index 986cec4..0f10f1d 100644 --- a/main.cpp +++ b/main.cpp @@ -36,8 +36,12 @@ Input input_data(istream& in, bool prompt) { -int main() { +int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); + if (argc > 1){ + cerr << "argv[0] = " << argv[0] << "argc = " << argc; + return 0; + } auto in = input_data(cin, true); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins);