code: загрузка файла по сети

main
ZelenkinaKM 12 месяцев назад
Родитель 42a69cd1bb
Сommit 61541cc2e0

@ -61,10 +61,17 @@ input_data(istream& in, bool prompt) {
int main(int argc, char* argv[])
{
if (argc>1){
for (int i=0; i<argc; i++){
cout<<argv[i];
}
CURL *curl = curl_easy_init();
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);
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);

Загрузка…
Отмена
Сохранить