diff --git a/bin/Debug/libcurl.dll b/bin/Debug/libcurl.dll
new file mode 100644
index 0000000..7b5f79a
Binary files /dev/null and b/bin/Debug/libcurl.dll differ
diff --git a/devlab1.cbp b/devlab1.cbp
index 89a677b..7b50db8 100644
--- a/devlab1.cbp
+++ b/devlab1.cbp
@@ -31,9 +31,13 @@
+
+
+
+
diff --git a/devlab1.depend b/devlab1.depend
index a2d396f..1711783 100644
--- a/devlab1.depend
+++ b/devlab1.depend
@@ -9,7 +9,7 @@
1681733870 c:\program files\codeblocks\devlab1\histogram.h
-1682342839 source:c:\program files\codeblocks\devlab1\histogram.cpp
+1685054519 source:c:\program files\codeblocks\devlab1\histogram.cpp
"histogram.h"
diff --git a/devlab1.layout b/devlab1.layout
index dd5b9bf..285cb9a 100644
--- a/devlab1.layout
+++ b/devlab1.layout
@@ -2,19 +2,14 @@
-
-
-
-
-
-
+
-
+
-
+
-
+
@@ -22,29 +17,29 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/main.cpp b/main.cpp
index 7d0ed20..e780892 100644
--- a/main.cpp
+++ b/main.cpp
@@ -3,6 +3,7 @@
#include
#include "histogram.h"
#include "svg.h"
+#include
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<