code: изменение в main

main
FilippovDY 11 месяцев назад
Родитель 959049f3f0
Сommit 95220556fa

@ -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;
} }

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