From 5135699b215758a3bd8d6a7dd4a66dd6b59e8e4a Mon Sep 17 00:00:00 2001 From: EfremovSI Date: Sat, 18 May 2024 16:31:08 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=9E=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 --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 86113af..8236bb4 100644 --- a/main.cpp +++ b/main.cpp @@ -63,17 +63,17 @@ return inn; int main(int argc, char* argv[]) { - CURL *curl = curl_easy_init(); + if (argc > 1) { if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "http://uit.mpei.ru/study/courses/cs/lab03/marks.txt"); res = curl_easy_perform(curl); curl_easy_cleanup(curl); - + cout << res; return 0; } - + } bool flag; bool prompt;