Сравнить коммиты

..

Ничего общего в коммитах. '5f417880509042419f1034475546e3102ff66511' и 'f5b2b9310962fec082e71c8a516db51f08352e29' имеют совершенно разные истории.

@ -15,34 +15,32 @@ struct Input
}; };
Input Input
input_data(istream& in, bool prompt) input_data()
{ {
if(prompt)
cerr << "count=";
size_t number_count; size_t number_count;
in >> number_count; cerr << "count=";
cin >> number_count;
Input rez; Input in;
if(prompt) in.numbers.resize(number_count);
cerr << "bin_count= ";
rez.numbers.resize(number_count);
for (size_t i = 0; i < number_count; i++) for (size_t i = 0; i < number_count; i++)
{ {
in >> rez.numbers[i]; cin >> in.numbers[i];
} }
if(prompt)
cerr << "bin_count= "; cerr << "bin_count= ";
in >> rez.bin_count; cin >> in.bin_count;
return rez;
return in;
} }
int main() int main()
{ {
bool prompt = true; auto in = input_data();
auto in = input_data(cin, prompt);
auto bins = make_histogram(in.numbers, in.bin_count); auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins); show_histogram_svg(bins);
return 0; return 0;

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