code: подсказки
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -32,7 +32,11 @@ Input input_data(istream& in, bool prompt = true)
|
|||||||
|
|
||||||
int main()
|
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);
|
vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
|
||||||
show_histogram_svg(bins);
|
show_histogram_text(bins);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user