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

main
PARZIVAL (BreganIM) 4 недель назад
Родитель c89c94151c
Сommit 928e229a58

@ -33,25 +33,24 @@ Input input_data(istream& in, bool prompt) {
int main(int argc, char* argv[]) {
curl_global_init(CURL_GLOBAL_ALL);
if (argc > 1) {
cout << "argc = " << argc << "\n";
for (int i = 0; i < argc; i++) {
cout << "argv[" << i << "] = \"" << argv[i] << "\"\n";
CURL* curl = curl_easy_init();
if (curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
curl_global_init(CURL_GLOBAL_ALL);
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);
show_histogram_text(bins);
return 0;
}

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