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

..

Ничего общего в коммитах. '77874d3b689b9fba94b0d11da984dfdceb2b7951' и '6eb46fd053e593f2d06a9dcf848abf34719e25ac' имеют совершенно разные истории.

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

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