@ -1,4 +1,4 @@
#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);