From 3145fd865b1f0f6638852c72fd64f26128fd5d5a Mon Sep 17 00:00:00 2001 From: "Platon (MiachinPY)" Date: Thu, 1 May 2025 14:04:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20sv?= =?UTF-8?q?g=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B8=20=D0=B8=D0=B7?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab01.cbp | 8 ++++---- lab01.depend | 14 +++++++++++++- lab01.layout | 16 +++++++++++++--- main.cpp | 4 ++-- unittest.cbp | 4 ++++ unittest.layout | 15 +++++++++++++++ 6 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 unittest.layout diff --git a/lab01.cbp b/lab01.cbp index a390f01..88dfea5 100644 --- a/lab01.cbp +++ b/lab01.cbp @@ -32,18 +32,18 @@ - - - + + + - diff --git a/lab01.depend b/lab01.depend index 381bce7..9be2205 100644 --- a/lab01.depend +++ b/lab01.depend @@ -1,9 +1,10 @@ # depslib dependency file v1.0 -1745609797 source:c:\users\платон\desktop\project\lab01\main.cpp +1746094194 source:c:\users\платон\desktop\project\lab01\main.cpp "histogram.h" "text.h" + "svg.h" 1745611606 source:c:\users\платон\desktop\project\lab01\historgam.cpp @@ -78,3 +79,14 @@ "histogram.h" +1746094194 c:\users\платон\desktop\project\lab01\svg.h + + +1746094194 source:c:\users\платон\desktop\project\lab01\svg.cpp + + + + + + "svg.h" + diff --git a/lab01.layout b/lab01.layout index 0244e65..06c2d6a 100644 --- a/lab01.layout +++ b/lab01.layout @@ -2,12 +2,22 @@ - + - + - + + + + + + + + + + + diff --git a/main.cpp b/main.cpp index 507cd57..57e57b6 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,7 @@ #include #include "histogram.h" #include "text.h" +#include "svg.h" using namespace std; @@ -22,7 +23,6 @@ input_data() { cerr << "Enter Num[" << i << "]: "; cin >> in.numbers[i]; } - cerr << "Enter bin count: "; cin >> bin_count; cerr << "Enter bin count: "; cin >> in.bin_count; return in; @@ -31,7 +31,7 @@ int main() { auto in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); - show_histogram_text(bins, in.bin_count); + show_histogram_svg(bins); return 0; } diff --git a/unittest.cbp b/unittest.cbp index 7f9621b..5a9c8c0 100644 --- a/unittest.cbp +++ b/unittest.cbp @@ -31,6 +31,10 @@ + + + + diff --git a/unittest.layout b/unittest.layout new file mode 100644 index 0000000..8ec3341 --- /dev/null +++ b/unittest.layout @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +