code: подправлен main под работу с svg

main
Krivobokov Nikolay 3 недель назад
Родитель 82593f4a51
Сommit 49f0b786f8

@ -2,7 +2,7 @@
#include <vector> #include <vector>
#include "histogram.h" #include "histogram.h"
#include "text.h" #include "text.h"
#include "svg.h"
using namespace std; using namespace std;
@ -35,8 +35,11 @@ input_data() {
int main() { int main() {
std::string fill = "red";
std::string stroke = "#000000";
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_text(bins, in.bin_count); show_histogram_svg(bins, fill, stroke);
return 0; return 0;
} }

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