code: добавлены аргументы

Этот коммит содержится в:
2025-05-24 23:22:11 +03:00
родитель d7f7df5a31
Коммит 1310ab4663
3 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@@ -1,4 +1,4 @@
#include "histogram.h"
#include "histogram.h"
#include <vector>
using namespace std;
@@ -33,4 +33,3 @@ vector<size_t> make_histogram(vector<double> numbers, size_t bin_count) {
}
return bins;
}

Просмотреть файл

@@ -31,7 +31,12 @@
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add directory="curl/include" />
</Compiler>
<Linker>
<Add library="libcurl.dll.a" />
<Add directory="curl/lib" />
</Linker>
<Unit filename=".gitignore" />
<Unit filename="histogram.cpp" />
<Unit filename="histogram.h" />

Просмотреть файл

@@ -36,8 +36,12 @@ Input input_data(istream& in, bool prompt) {
int main() {
int main(int argc, char* argv[]) {
curl_global_init(CURL_GLOBAL_ALL);
if (argc > 1){
cerr << "argv[0] = " << argv[0] << "argc = " << argc;
return 0;
}
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);