|
|
@ -1,4 +1,5 @@
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "text.h"
|
|
|
|
#include "text.h"
|
|
|
@ -42,6 +43,9 @@ int main() {
|
|
|
|
std::string fill = "red";
|
|
|
|
std::string fill = "red";
|
|
|
|
std::string stroke = "#000000";
|
|
|
|
std::string stroke = "#000000";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto in = input_data(cin, true);
|
|
|
|
auto in = input_data(cin, true);
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
show_histogram_svg(bins, fill, stroke);
|
|
|
|
show_histogram_svg(bins, fill, stroke);
|
|
|
|