From 487e87fa26e3a96dff2dc10458db0283697d30a0 Mon Sep 17 00:00:00 2001 From: KonovalovaAA Date: Mon, 22 May 2023 16:38:34 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.depend | 2 +- main.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/1.depend b/1.depend index fedde6b..05a41b4 100644 --- a/1.depend +++ b/1.depend @@ -20,7 +20,7 @@ -1684761954 source:c:\users\79156\desktop\3\main.cpp +1684762502 source:c:\users\79156\desktop\3\main.cpp diff --git a/main.cpp b/main.cpp index f23ee08..68035e8 100644 --- a/main.cpp +++ b/main.cpp @@ -61,10 +61,11 @@ int main(int argc, char* argv[]) CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); res = curl_easy_perform(curl); + if(res != CURLE_OK){ + fprintf(stderr, "curl_easy_perform() failed: %s\n", + curl_easy_strerror(res)); + exit(1);} curl_easy_cleanup(curl); - cerr << res<