code: загрузка файла по сети
Этот коммит содержится в:
13
main.cpp
13
main.cpp
@@ -61,10 +61,17 @@ input_data(istream& in, bool prompt) {
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
if (argc>1){
|
if (argc>1){
|
||||||
for (int i=0; i<argc; i++){
|
CURL *curl = curl_easy_init();
|
||||||
cout<<argv[i];
|
if(curl) {
|
||||||
}
|
CURLcode res;
|
||||||
|
curl_easy_setopt(curl, CURLOPT_URL, argv[0]);
|
||||||
|
res = curl_easy_perform(curl);
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
auto in = input_data(cin, true);
|
auto in = input_data(cin, true);
|
||||||
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user