From c0e3aaf5e86700901bd8032fe752ce31327a4057 Mon Sep 17 00:00:00 2001 From: LedovskojMM <LedovskoyMM@mpei.ru> Date: Sun, 4 Jun 2023 20:47:36 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20libcurl.dll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- lab1.depend | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- main.cpp | 2 ++ 3 files changed, 54 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0a079b6..07771fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /bin -/obj \ No newline at end of file +/obj +/curl \ No newline at end of file diff --git a/lab1.depend b/lab1.depend index e0fcee0..b4eb036 100644 --- a/lab1.depend +++ b/lab1.depend @@ -3,7 +3,7 @@ <iostream> <vector> -1685895850 source:c:\users\admin\onedrive\������� ����\lab1\main.cpp +1685897816 source:c:\users\admin\onedrive\������� ����\lab1\main.cpp <iostream> <vector> <cmath> @@ -13,6 +13,7 @@ "svg.h" <conio.h> "histogam_internal.h" + <curl/curl.h> 1685896776 c:\users\admin\onedrive\������� ����\lab1\histogam.h <vector> @@ -48,3 +49,51 @@ 1685896776 c:\users\admin\onedrive\������� ����\lab1\svg.h +1685361112 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\curl.h + "curlver.h" + "system.h" + <stdio.h> + <limits.h> + <osreldate.h> + <sys/types.h> + <time.h> + <winsock2.h> + <ws2tcpip.h> + <sys/select.h> + <sys/socket.h> + <sys/time.h> + "easy.h" + "multi.h" + "urlapi.h" + "options.h" + "header.h" + "websockets.h" + "typecheck-gcc.h" + +1685416610 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\curlver.h + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\system.h + <ConditionalMacros.h> + <winsock2.h> + <windows.h> + <ws2tcpip.h> + <sys/types.h> + <sys/socket.h> + <sys/poll.h> + +1685004688 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\easy.h + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\multi.h + "curl.h" + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\urlapi.h + "curl.h" + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\options.h + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\header.h + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\websockets.h + +1684137360 c:\users\admin\onedrive\������� ����\lab1\curl\include\curl\typecheck-gcc.h + diff --git a/main.cpp b/main.cpp index 9c26842..47c5a81 100644 --- a/main.cpp +++ b/main.cpp @@ -7,6 +7,7 @@ #include "svg.h" #include <conio.h> #include "histogam_internal.h" +#include <curl/curl.h> using namespace std; @@ -72,6 +73,7 @@ input_data(istream& in, bool promt) int main() { + curl_global_init(CURL_GLOBAL_ALL); auto in = input_data(cin, true); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins);