diff --git a/.gitignore b/.gitignore index 54300f1..0c13920 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /obj /lab01.depend /lab01.layout +/curl + diff --git a/main.cpp b/main.cpp index 2528297..acb65ec 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "histogram.h" #include "text.h" #include "svg.h" @@ -32,11 +33,11 @@ Input input_data(istream& in, bool prompt = true) int main() { - bool show_prompts; // User choice: true to show prompts, false to hide them + curl_global_init(CURL_GLOBAL_ALL); + bool show_prompts; cout << "Show prompts? (1 for yes, 0 for no): "; cin >> show_prompts; - Input in = input_data(cin, show_prompts); vector bins = make_histogram(in.numbers, in.bin_count); - show_histogram_text(bins); + show_histogram_svg(bins); }