code: добавил в input_data() новый параметр: bool prompt

main
Danila 2 лет назад
Родитель 46f28bf31c
Сommit 05d32e076a

@ -13,10 +13,13 @@ struct Input
};
Input
input_data(istream& in)
input_data(istream& in, bool promt)
{
size_t number_count;
cerr << "Enter number count: ";
if (promt)
{
cerr << "Enter number count: ";
}
in >> number_count;
Input ik;
@ -34,7 +37,7 @@ input_data(istream& in)
int main()
{
auto in = input_data(cin);
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);
getch();

Загрузка…
Отмена
Сохранить