Этот коммит содержится в:
2024-05-27 07:45:45 +03:00
родитель b8a8ebdeba
Коммит b9d5c4c35d

Просмотреть файл

@@ -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<size_t> bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);
show_histogram_text(bins);
}