diff --git a/devlab1.depend b/devlab1.depend index 4af22a7..3ed20c5 100644 --- a/devlab1.depend +++ b/devlab1.depend @@ -6,7 +6,7 @@ "histogram.h" "svg.h" -1681732312 c:\program files\codeblocks\devlab1\histogram.h +1681733106 c:\program files\codeblocks\devlab1\histogram.h 1681730387 source:c:\program files\codeblocks\devlab1\histogram.cpp @@ -20,10 +20,10 @@ 1680530410 source:c:\program files\codeblocks\devlab1\text.cpp "text.h" -1681731817 c:\program files\codeblocks\devlab1\svg.h +1681733452 c:\program files\codeblocks\devlab1\svg.h -1681732105 source:c:\program files\codeblocks\devlab1\svg.cpp +1681733443 source:c:\program files\codeblocks\devlab1\svg.cpp "svg.h" diff --git a/main.cpp b/main.cpp index 14da376..4a312d9 100644 --- a/main.cpp +++ b/main.cpp @@ -51,7 +51,7 @@ int main() { auto in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); - show_histogram_svg(bins,in.BLOCK_WIDTH); + show_histogram_svg(&bins,in.BLOCK_WIDTH); return 0; diff --git a/obj/Debug/main.o b/obj/Debug/main.o index 7e92f87..c93adec 100644 Binary files a/obj/Debug/main.o and b/obj/Debug/main.o differ diff --git a/obj/Debug/svg.o b/obj/Debug/svg.o index ac15bc1..6b528f7 100644 Binary files a/obj/Debug/svg.o and b/obj/Debug/svg.o differ diff --git a/svg.cpp b/svg.cpp index 68ea97e..640cf36 100644 --- a/svg.cpp +++ b/svg.cpp @@ -33,7 +33,7 @@ void svg_rect(double x, double y, double width, double height, string stroke = " } void -show_histogram_svg(const vector& bins, int BLOCK_WIDTH) +show_histogram_svg( vector& bins, int BLOCK_WIDTH) { const auto IMAGE_WIDTH = 400; diff --git a/svg.h b/svg.h index aa7c3cc..a2d58c6 100644 --- a/svg.h +++ b/svg.h @@ -2,4 +2,4 @@ #include void -show_histogram_svg(const std::vector& bins, int BLOCK_WIDTH); +show_histogram_svg(std::vector& bins, int BLOCK_WIDTH);