diff --git a/histogram.cpp b/histogram.cpp index 959e2b0..ad6bb59 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -36,7 +36,7 @@ vector make_histogramm(vectornumbers, size_t bin_count){ if (!found) bins[bin_count - 1]++; } - int max_count = bins[0]; + /*int max_count = bins[0]; for (size_t i = 0; i < bin_count; i++) { if (bins[i] > max_count) max_count = bins[i]; @@ -47,6 +47,6 @@ vector make_histogramm(vectornumbers, size_t bin_count){ size_t height = 76 * (static_cast(count) / max_count); bins[i] = height; } - } + }*/ return bins; } diff --git a/lab_01.cbp b/lab_01.cbp index 48c62a6..6fb5853 100644 --- a/lab_01.cbp +++ b/lab_01.cbp @@ -40,6 +40,10 @@