code: добавлен svg
Этот коммит содержится в:
5
main.cpp
5
main.cpp
@@ -1,7 +1,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "text.h"
|
#include "svg.h"
|
||||||
|
#include "show_svg.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
struct Input {
|
struct Input {
|
||||||
@@ -36,7 +37,7 @@ int main()
|
|||||||
{
|
{
|
||||||
Input in = input_data();
|
Input in = input_data();
|
||||||
vector<size_t> bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
vector<size_t> bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
||||||
show_histogram_text(bins, in.max_count, in.bin_count);
|
show_histogram_svg(bins);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user