с божьей помощью подключили curl
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -1,6 +1,10 @@
|
|||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
|
|
||||||
|
|
||||||
struct Input {
|
struct Input {
|
||||||
vector<double> vec;
|
vector<double> vec;
|
||||||
size_t korz{};
|
size_t korz{};
|
||||||
@@ -20,8 +24,8 @@ Input input_data(istream& in, bool promt = false) {
|
|||||||
return lin;
|
return lin;
|
||||||
}
|
}
|
||||||
int main() {
|
int main() {
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
auto in = input_data(cin, true);
|
auto in = input_data(cin);
|
||||||
auto bins = make_histogram(in.korz, in.vec);
|
auto bins = make_histogram(in.korz, in.vec);
|
||||||
show_histogram_svg(bins);
|
show_histogram_svg(bins);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user