code: second commit in lab 4
Этот коммит содержится в:
11
labor01.cpp
11
labor01.cpp
@@ -13,7 +13,10 @@ struct Input {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Input
|
Input
|
||||||
input_data(istream& inn) {
|
input_data(istream& inn, bool promt) {
|
||||||
|
if (promt == true) {
|
||||||
|
cerr << "Sovet:" << endl;
|
||||||
|
}
|
||||||
size_t number_count;
|
size_t number_count;
|
||||||
cerr << "Enter number_count: ";
|
cerr << "Enter number_count: ";
|
||||||
inn >> number_count;
|
inn >> number_count;
|
||||||
@@ -39,10 +42,8 @@ input_data(istream& inn) {
|
|||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
auto in = input_data(cin);
|
bool promt = true;
|
||||||
|
auto in = input_data(cin, promt);
|
||||||
auto bins = make_histogram(in.numbers, in.bin_count);
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||||
show_histogram_svg(bins, in.colors);
|
show_histogram_svg(bins, in.colors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Ссылка в новой задаче
Block a user