BaranovEK 11 месяцев назад
Родитель 3710755ae3
Сommit cad06fe58d

@ -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="histogram.cpp" />
<Unit filename="histogram.h" />
<Unit filename="histogram_internal.h" />

@ -7,7 +7,7 @@
1716797551 c:\users\lenov\desktop\lab03\histogram.h
<vector>
1717518697 source:c:\users\lenov\desktop\lab03\main.cpp
1717520017 source:c:\users\lenov\desktop\lab03\main.cpp
<iostream>
<vector>
"histogram.h"

@ -34,14 +34,18 @@ input_data(istream& stream, bool prompt) {
return in;
}
int main()
int main(int argc, char* argv[])
{
if (argc > 1) {
for (int i = 0; i < argc; i++) {
cout << "argv[" << i << "] = " << argv[i];
}
return 0;
}
curl_global_init(CURL_GLOBAL_ALL);
Input in = input_data(cin, false);
auto bins = make_histogram(in.numbers, in.bin_count);
vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);
return 0;
}

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