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;