code: добавлен argument count
Этот коммит содержится в:
5
lab1.cbp
5
lab1.cbp
@@ -31,7 +31,12 @@
|
|||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
<Add option="-fexceptions" />
|
<Add option="-fexceptions" />
|
||||||
|
<Add directory="C:/Users/Professional/Desktop/cs-lab34/lab1/curl/include" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add library="C:/Users/Professional/Desktop/cs-lab34/lab1/curl/lib/libcurl.dll.a" />
|
||||||
|
<Add directory="C:/Users/Professional/Desktop/cs-lab34/lab1/curl/lib" />
|
||||||
|
</Linker>
|
||||||
<Unit filename="histogram.cpp" />
|
<Unit filename="histogram.cpp" />
|
||||||
<Unit filename="histogram.h">
|
<Unit filename="histogram.h">
|
||||||
<Option target="<{~None~}>" />
|
<Option target="<{~None~}>" />
|
||||||
|
|||||||
56
lab1.depend
56
lab1.depend
@@ -13,7 +13,8 @@
|
|||||||
<iostream>
|
<iostream>
|
||||||
<vector>
|
<vector>
|
||||||
|
|
||||||
1747642974 source:c:\users\professional\desktop\cs-lab34\lab1\main.cpp
|
1747651892 source:c:\users\professional\desktop\cs-lab34\lab1\main.cpp
|
||||||
|
<curl/curl.h>
|
||||||
"histogram.h"
|
"histogram.h"
|
||||||
"text.h"
|
"text.h"
|
||||||
"svg.h"
|
"svg.h"
|
||||||
@@ -29,3 +30,56 @@
|
|||||||
1747403716 source:c:\users\professional\desktop\cs-lab34\lab1\svg.cpp
|
1747403716 source:c:\users\professional\desktop\cs-lab34\lab1\svg.cpp
|
||||||
"svg.h"
|
"svg.h"
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\curl.h
|
||||||
|
"curlver.h"
|
||||||
|
"system.h"
|
||||||
|
<stdio.h>
|
||||||
|
<limits.h>
|
||||||
|
<sys/param.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<time.h>
|
||||||
|
<winsock2.h>
|
||||||
|
<ws2tcpip.h>
|
||||||
|
<sys/select.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/time.h>
|
||||||
|
"easy.h"
|
||||||
|
"multi.h"
|
||||||
|
"urlapi.h"
|
||||||
|
"options.h"
|
||||||
|
"header.h"
|
||||||
|
"websockets.h"
|
||||||
|
"mprintf.h"
|
||||||
|
"typecheck-gcc.h"
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\curlver.h
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\system.h
|
||||||
|
<ConditionalMacros.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/poll.h>
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\easy.h
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\multi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\urlapi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\options.h
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\header.h
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\websockets.h
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\mprintf.h
|
||||||
|
<stdarg.h>
|
||||||
|
<stdio.h>
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1743562062 c:\users\professional\desktop\cs-lab34\lab1\curl\include\curl\typecheck-gcc.h
|
||||||
|
|
||||||
|
|||||||
15
main.cpp
15
main.cpp
@@ -1,6 +1,4 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
@@ -38,11 +36,18 @@ Input input_data(istream &in, bool prompt) {
|
|||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
int main(int argc, char* argv[]) {
|
||||||
int main() {
|
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
|
if (argc > 1) {
|
||||||
|
cout << "argc = " << argc << endl;
|
||||||
|
for (int i = 0; i < argc; ++i) {
|
||||||
|
cout << "argv[" << i << "] = " << argv[i] << endl;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
auto in_with_prompt = input_data(cin, true);
|
auto in_with_prompt = input_data(cin, true);
|
||||||
auto bins_with_prompt = make_histogram(in_with_prompt.korz, in_with_prompt.vec);
|
auto bins_with_prompt = make_histogram(in_with_prompt.korz, in_with_prompt.vec);
|
||||||
show_histogram_svg(bins_with_prompt);
|
show_histogram_svg(bins_with_prompt);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user