добавление обработки строки

master
Yaroslav Spesivtsev 6 дней назад
Родитель f2c4302ba4
Сommit 75383e1fd3

@ -4,6 +4,7 @@
#include "text.h" #include "text.h"
#include <string> #include <string>
#include <sstream> #include <sstream>
#include <curl/curl.h>
struct Input{ struct Input{
std::vector<double> numbers; std::vector<double> numbers;
size_t bin_count{}; size_t bin_count{};
@ -37,7 +38,14 @@ Input input_data(std::istream& in, bool prompt) {
using namespace std; 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); Input in = input_data(std::cin, true);
auto bins = make_histogram(in.numbers, in.bin_count); auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins); show_histogram_svg(bins);

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