Карелина Мария 2 лет назад
Родитель eb7785e075
Сommit 93c87c538e

Двоичные данные
bin/Debug/libcurl.dll

Двоичный файл не отображается.

@ -31,9 +31,13 @@
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add directory="curl/include" />
</Compiler>
<Linker>
<Add option="-static-libstdc++" />
<Add library="libcurl.dll.a" />
<Add directory="curl/lib" />
<Add directory="C:/Program Files/CodeBlocks/devlab1/" />
</Linker>
<Unit filename="doctest.h" />
<Unit filename="histogram.cpp" />

@ -9,7 +9,7 @@
1681733870 c:\program files\codeblocks\devlab1\histogram.h
<vector>
1682342839 source:c:\program files\codeblocks\devlab1\histogram.cpp
1685054519 source:c:\program files\codeblocks\devlab1\histogram.cpp
"histogram.h"
<vector>
<iostream>

@ -2,19 +2,14 @@
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Debug" />
<File name="histogram.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="145" topLine="0" />
</Cursor>
</File>
<File name="doctest.h" open="1" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="svg.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="0" topLine="0" />
<Cursor1 position="139" topLine="0" />
</Cursor>
</File>
<File name="svg.cpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
<File name="histogram.cpp" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="2104" topLine="81" />
<Cursor1 position="638" topLine="20" />
</Cursor>
</File>
<File name="histogram_internal.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
@ -22,29 +17,29 @@
<Cursor1 position="160" topLine="0" />
</Cursor>
</File>
<File name="svg.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="histogram.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="139" topLine="0" />
<Cursor1 position="145" topLine="0" />
</Cursor>
</File>
<File name="text.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="svg.cpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
<Cursor>
<Cursor1 position="69" topLine="0" />
<Cursor1 position="84" topLine="21" />
</Cursor>
</File>
<File name="main.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
<File name="text.cpp" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="544" topLine="17" />
<Cursor1 position="342" topLine="0" />
</Cursor>
</File>
<File name="histogram.cpp" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
<Cursor>
<Cursor1 position="876" topLine="13" />
<Cursor1 position="56" topLine="0" />
</Cursor>
</File>
<File name="text.cpp" open="0" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="text.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="342" topLine="0" />
<Cursor1 position="69" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>

@ -3,6 +3,7 @@
#include <cmath>
#include "histogram.h"
#include "svg.h"
#include <curl/curl.h>
using namespace std;
@ -12,46 +13,45 @@ struct Input
int bin_count;
};
Input
input_data(istream& in)
{
size_t number_count=0;
bool prompt;
if (promt){
cerr<<"amount of numbers is ";
}
input_data(istream& in, bool prompt){
size_t number_count;
in >> number_count;
Input inp;
inp.numbers.resize(number_count);
if (promt){
cerr<<"let's intro numbers ";
if (prompt){
std::cerr << "enter bin_count";
}
for (size_t i = 0; i < number_count; i++)
{
for (size_t i = 0; i < number_count; i++){
in >> inp.numbers[i];
}
size_t bin_count=0;
if (promt){
cerr<<"amount of bins is ";
}
in >> inp.bin_count;
return inp;
}
//4199705
//0x71fdf8
//4199705
int main()
int
main(int argc, char* argv[])
{
auto inp = input_data(cin);
if (argc > 1){
cerr << "argv[0] = " << argv[0] << "argc = " << argc;
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
//std::cout<<in.bin_count<<endl;
}
return 0;}
auto bins = make_histogram(inp.numbers, inp.bin_count);
curl_global_init(CURL_GLOBAL_ALL);
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);

Двоичные данные
obj/Debug/main.o

Двоичный файл не отображается.
Загрузка…
Отмена
Сохранить