BadakinaVV 1 месяц назад
Родитель 0a74f931bf
Сommit 372722fa24

@ -3,6 +3,8 @@
#include "histogram.h" #include "histogram.h"
#include "text.h" #include "text.h"
#include "svg.h" #include "svg.h"
#include <curl/curl.h>
using namespace std; using namespace std;
struct Input { struct Input {
@ -24,7 +26,6 @@ input_data(istream& in, bool prompt) {
for (size_t i = 0; i < number_count; i++) { for (size_t i = 0; i < number_count; i++) {
in >> input.numbers[i]; in >> input.numbers[i];
} }
in >> input.bin_count; in >> input.bin_count;
return input; return input;
@ -32,6 +33,7 @@ input_data(istream& in, bool prompt) {
int int
main() { main() {
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); show_histogram_svg(bins);

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