diff --git a/lab34.cbp b/lab34.cbp
index 0c0e7e4..fe95798 100644
--- a/lab34.cbp
+++ b/lab34.cbp
@@ -13,7 +13,13 @@
+
+
+
+
+
+
@@ -32,7 +38,16 @@
+
+
+
+
+
+
+
+
+
diff --git a/lab34.depend b/lab34.depend
index ca1501c..fef8628 100644
--- a/lab34.depend
+++ b/lab34.depend
@@ -19,3 +19,78 @@
+1684755117 source:c:\users\stepa\desktop\lab04\lab04\histogram.cpp
+ "histogram.h"
+ "vector"
+
+1684755161 c:\users\stepa\desktop\lab04\lab04\histogram.h
+
+
+
+
+1684755057 source:c:\users\stepa\desktop\lab04\lab04\svg.cpp
+ "svg.h"
+
+
+
+ "cmath"
+
+1684757154 c:\users\stepa\desktop\lab04\lab04\svg.h
+
+
+
+1685952174 source:c:\users\stepa\desktop\lab04\lab04\main.cpp
+
+ "vector"
+ "svg.h"
+ "histogram.h"
+ "curl/curl.h"
+
+1685361112 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\curl.h
+ "curlver.h"
+ "system.h"
+
+
+
+
+
+
+
+
+
+
+ "easy.h"
+ "multi.h"
+ "urlapi.h"
+ "options.h"
+ "header.h"
+ "websockets.h"
+ "typecheck-gcc.h"
+
+1685416610 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\curlver.h
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\system.h
+
+
+
+
+
+
+
+
+1685004688 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\easy.h
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\multi.h
+ "curl.h"
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\urlapi.h
+ "curl.h"
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\options.h
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\header.h
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\websockets.h
+
+1684137360 c:\users\stepa\desktop\lab04\lab04\curl\include\curl\typecheck-gcc.h
+
diff --git a/lab34.layout b/lab34.layout
new file mode 100644
index 0000000..b3f4c26
--- /dev/null
+++ b/lab34.layout
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.cpp b/main.cpp
index 638d91a..30767bf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -17,6 +17,10 @@ struct Input {
Input
input_data(istream& inn, bool promt) {
size_t number_count;
+ if (promt)
+ {
+ cerr << "Enter number count: ";
+ }
cin >> number_count;
Input in;
in.numbers.resize(number_count);
@@ -24,13 +28,23 @@ input_data(istream& inn, bool promt) {
for (size_t i = 0; i < number_count; i++) {
cin >> in.numbers[i];
}
-
+ if (promt)
+ {
+ cerr << "Enter bins number: ";
+ }
cin >> in.bin_count;
return in;
}
-int main() {
+int main(int argc, char* argv[]) {
curl_global_init(CURL_GLOBAL_ALL);
+ if (argc > 1){
+ cout << argc << endl;
+ for(size_t i = 0; i < argc; i++){
+ cout << "argv[" << i << "] = " << argv[0] << endl;
+ }
+ return 0;
+ }
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
//show_histogram_text(bins, in.bin_count);