diff --git a/main.cpp b/main.cpp index 4704d3f..2528297 100644 --- a/main.cpp +++ b/main.cpp @@ -32,7 +32,11 @@ Input input_data(istream& in, bool prompt = true) int main() { - Input in = input_data(cin); + bool show_prompts; // User choice: true to show prompts, false to hide them + 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_svg(bins); + show_histogram_text(bins); }