From 594f79f3d38a74083c44a0b77c779ff118601253 Mon Sep 17 00:00:00 2001 From: LiTekho Date: Sun, 4 Jun 2023 20:20:55 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20libcurl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 +++++++ main.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea7be31 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/bin +/obj +/prj.depend +/prj.layout +/type +/unitest.layout +/curl diff --git a/main.cpp b/main.cpp index b47f834..0834117 100644 --- a/main.cpp +++ b/main.cpp @@ -6,9 +6,9 @@ #include "histogram.h" #include "text.h" #include "svg.h" +#include using namespace std; - struct Input { vector numbers; @@ -41,6 +41,8 @@ input_data(istream& in, bool prompt) int main() { + curl_global_init(CURL_GLOBAL_ALL); + auto in = input_data(cin, true); auto bins = make_histogramm(in.numbers, in.bin_count);