MaryK 2 лет назад
Родитель a1b945b513
Сommit f6d71c673f

@ -6,7 +6,7 @@
"histogram.h" "histogram.h"
"svg.h" "svg.h"
1681732312 c:\program files\codeblocks\devlab1\histogram.h 1681733106 c:\program files\codeblocks\devlab1\histogram.h
<vector> <vector>
1681730387 source:c:\program files\codeblocks\devlab1\histogram.cpp 1681730387 source:c:\program files\codeblocks\devlab1\histogram.cpp
@ -20,10 +20,10 @@
1680530410 source:c:\program files\codeblocks\devlab1\text.cpp 1680530410 source:c:\program files\codeblocks\devlab1\text.cpp
"text.h" "text.h"
1681731817 c:\program files\codeblocks\devlab1\svg.h 1681733452 c:\program files\codeblocks\devlab1\svg.h
<vector> <vector>
1681732105 source:c:\program files\codeblocks\devlab1\svg.cpp 1681733443 source:c:\program files\codeblocks\devlab1\svg.cpp
"svg.h" "svg.h"
<iostream> <iostream>
<vector> <vector>

@ -51,7 +51,7 @@ int main()
{ {
auto in = input_data(); auto in = input_data();
auto bins = make_histogram(in.numbers, in.bin_count); 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; return 0;

Двоичные данные
obj/Debug/main.o

Двоичный файл не отображается.

Двоичные данные
obj/Debug/svg.o

Двоичный файл не отображается.

@ -33,7 +33,7 @@ void svg_rect(double x, double y, double width, double height, string stroke = "
} }
void void
show_histogram_svg(const vector<double>& bins, int BLOCK_WIDTH) show_histogram_svg( vector<double>& bins, int BLOCK_WIDTH)
{ {
const auto IMAGE_WIDTH = 400; const auto IMAGE_WIDTH = 400;

@ -2,4 +2,4 @@
#include <vector> #include <vector>
void void
show_histogram_svg(const std::vector<long long unsigned int>& bins, int BLOCK_WIDTH); show_histogram_svg(std::vector<long long unsigned int>& bins, int BLOCK_WIDTH);

Загрузка…
Отмена
Сохранить