code: изменение в main
Этот коммит содержится в:
13
main.cpp
13
main.cpp
@@ -39,14 +39,21 @@ input_data(istream& stream, bool prompt) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main(int argc, char* argv[]){
|
||||||
{
|
|
||||||
|
if (argc > 1){
|
||||||
|
auto i = 0;
|
||||||
|
while (i < argc){
|
||||||
|
cerr << "arg[" << i << "] = " << argv[i] << endl;
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
bool prompt = true;
|
bool prompt = true;
|
||||||
auto in = input_data(cin, prompt);
|
auto in = input_data(cin, prompt);
|
||||||
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
||||||
vector<double> test;
|
vector<double> test;
|
||||||
show_histogram_svg(bins, in.max_count, in.bin_count, test);
|
show_histogram_svg(bins, in.max_count, in.bin_count, test);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user