|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
#include "text.h"
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <sstream>
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
struct Input{
|
|
|
|
|
std::vector<double> numbers;
|
|
|
|
|
size_t bin_count{};
|
|
|
|
@ -37,7 +38,14 @@ Input input_data(std::istream& in, bool prompt) {
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
|
if (argc>1){
|
|
|
|
|
cerr << "argc = " << argc << endl;
|
|
|
|
|
for (int i=0; i < argc; ++i){
|
|
|
|
|
cerr << "argv[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
Input in = input_data(std::cin, true);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|