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

...

3 Коммитов

Автор SHA1 Сообщение Дата
ShirokovIV 77874d3b68 с божьей помощью подключили curl
1 месяц назад
ShirokovIV aa518e1fed promt
1 месяц назад
ShirokovIV dcb3401ade cin меняем на in
1 месяц назад

@ -1,25 +1,31 @@
#include <curl/curl.h>
#include "histogram.h"
#include "text.h"
#include "svg.h"
struct Input {
vector<double> vec;
size_t korz{};
};
Input input_data() {
Input in;
Input input_data(istream& in, bool promt = false) {
Input lin;
size_t n, korz;
cerr << "Number of elem ";
cin >> n;
in.vec.resize(n);
if(promt)
cerr << "Number of elem ";
in >> n;
lin.vec.resize(n);
for (size_t i = 0; i < n; i++)
cin >> in.vec[i];
cerr << "Enter bin count: ";
cin >> in.korz;
return in;
in >> lin.vec[i];
if(promt)
cerr << "Enter bin count: ";
in >> lin.korz;
return lin;
}
int main() {
auto in = input_data();
curl_global_init(CURL_GLOBAL_ALL);
auto in = input_data(cin);
auto bins = make_histogram(in.korz, in.vec);
show_histogram_svg(bins);
}

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