code: обработка ошибок
Этот коммит содержится в:
2
1.depend
2
1.depend
@@ -20,7 +20,7 @@
|
||||
<iostream>
|
||||
<vector>
|
||||
|
||||
1684761954 source:c:\users\79156\desktop\3\main.cpp
|
||||
1684762502 source:c:\users\79156\desktop\3\main.cpp
|
||||
<iostream>
|
||||
<vector>
|
||||
<cmath>
|
||||
|
||||
7
main.cpp
7
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<<endl;
|
||||
cerr << argc<<endl;
|
||||
cerr << argv[0];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user