diff --git a/main.cpp b/main.cpp index dc7b84e..646953e 100644 --- a/main.cpp +++ b/main.cpp @@ -49,12 +49,17 @@ Input input_data(istream& in, bool promt) int main(int argc, char* argv[]) { if (argc > 1){ - cout << argc; - cout << argv[0]; + CURL* curl = curl_easy_init(); + if(curl) { + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, "http://uit.mpei.ru/study/courses/cs/lab03/marks.txt"); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); + } return 0; } curl_global_init(CURL_GLOBAL_ALL); - auto in = input_data(cin,false); + auto in = input_data(cin,true); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins); return 0;