Сравнить коммиты

...

2 Коммитов

@ -32,7 +32,22 @@
<Add option="-Wall" /> <Add option="-Wall" />
<Add option="-fexceptions" /> <Add option="-fexceptions" />
</Compiler> </Compiler>
<Unit filename="histogram.cpp" />
<Unit filename="histogram.h">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Unit filename="histogram_internal.h">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Unit filename="main.cpp" /> <Unit filename="main.cpp" />
<Unit filename="svg.cpp" />
<Unit filename="svg.h">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Unit filename="text.cpp" />
<Unit filename="text.h">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Extensions /> <Extensions />
</Project> </Project>
</CodeBlocks_project_file> </CodeBlocks_project_file>

@ -3,6 +3,7 @@
#include <math.h> #include <math.h>
#include "histogram.h" #include "histogram.h"
#include "text.h" #include "text.h"
#include "svg.h"
using namespace std; using namespace std;
@ -33,15 +34,11 @@ input_data()
return in; return in;
} }
int main() int main()
{ {
Input in = input_data(); auto in = input_data();
auto B = make_histogram(in.numbers, in.kol_kor); auto B = make_histogram(in.numbers, in.kol_kor);
show_histogram_text(B, in.kol_kor); show_histogram_svg(B);
return 0; return 0;
} }

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