diff --git a/ProgUit Lab1/ProgUit Lab1.cpp b/ProgUit Lab1/ProgUit Lab1.cpp index fc0ae98..6b5c535 100644 --- a/ProgUit Lab1/ProgUit Lab1.cpp +++ b/ProgUit Lab1/ProgUit Lab1.cpp @@ -76,8 +76,12 @@ int main(int argc, char* argv[]) curl_easy_setopt(curl, CURLOPT_URL, argv[1]); res = curl_easy_perform(curl); curl_easy_cleanup(curl); - } + if (CURLE_OK != 0) { + cout << curl_easy_strerror(res) << endl; + exit(1); + } + } return 0; } @@ -89,12 +93,12 @@ int main(int argc, char* argv[]) string promt; - bool promt1 = true; + bool promt1 = false; - cout << "DO YOU NEED CERR? (YES/NO)" << endl; + //cout << "DO YOU NEED CERR? (YES/NO)" << endl; //while (true) { // cin >> promt; diff --git a/x64/Debug/ProgUit Lab1.pdb b/x64/Debug/ProgUit Lab1.pdb index ed9e911..68f6174 100644 Binary files a/x64/Debug/ProgUit Lab1.pdb and b/x64/Debug/ProgUit Lab1.pdb differ