Добавлен вывод аргументов main
Этот коммит содержится в:
@@ -14,6 +14,11 @@
|
||||
<Compiler>
|
||||
<Add option="-g" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-static-libstdc++" />
|
||||
<Add option="-static-libgcc" />
|
||||
<Add option="-static" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release">
|
||||
<Option output="bin/Release/fin_lab34" prefix_auto="1" extension_auto="1" />
|
||||
@@ -25,13 +30,25 @@
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-s" />
|
||||
<Add option="-static-libstdc++" />
|
||||
<Add option="-static-libgcc" />
|
||||
<Add option="-static" />
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Wall" />
|
||||
<Add option="-fexceptions" />
|
||||
<Add directory="D:/PROG/PROGRAMMING/fin_lab34/curl/include" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-static-libstdc++" />
|
||||
<Add option="-static-libgcc" />
|
||||
<Add option="-static" />
|
||||
<Add option="-DCURL_STATICLIB" />
|
||||
<Add library="D:/PROG/PROGRAMMING/fin_lab34/curl/lib/libcurl.dll.a" />
|
||||
<Add directory="D:/PROG/PROGRAMMING/fin_lab34/curl/lib" />
|
||||
</Linker>
|
||||
<Unit filename=".gitignore" />
|
||||
<Unit filename="fin_lab34.cpp" />
|
||||
<Unit filename="histogram.cpp" />
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <curl/curl.h>
|
||||
#include "histogram.h"
|
||||
#include "text.h"
|
||||
#include "svg.h"
|
||||
|
||||
const size_t WINDOW_WIDTH = 80;
|
||||
const size_t MAX_VALUE = WINDOW_WIDTH - 3 - 1;
|
||||
using namespace std;
|
||||
@@ -33,8 +35,15 @@ input_data(istream &thread, bool &prompt){
|
||||
}
|
||||
|
||||
int
|
||||
main(){
|
||||
double min = 0, max = 0;
|
||||
main(int argc, char* argv[]){
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
if (argc > 1) {
|
||||
cout << argc << endl;
|
||||
for (int i = 0; i < argc; i++){
|
||||
cout << argv[i] << endl;
|
||||
}
|
||||
}
|
||||
//CURLcode curl_global_init(CURL_GLOBAL_ALL);
|
||||
size_t font = 0;
|
||||
bool prompt = false;
|
||||
auto in = input_data(cin, prompt);
|
||||
|
||||
Ссылка в новой задаче
Block a user