Сравнить коммиты

...

8 Коммитов

1
.gitignore поставляемый

@ -4,3 +4,4 @@
/lab01.layout
/unittest.depend
/unittest.layout
/curl

@ -4,6 +4,7 @@
#include "text.h"
#include "svg.h"
#include <string>
#include <curl/curl.h>
using namespace std;
@ -15,28 +16,50 @@ struct Input {
};
Input
input_data(istream& Newcin) {
input_data(istream& Newcin){
size_t number_count;
cerr << "Enter number count: ";
cin >> number_count;
Newcin >> number_count;
bool prompt;
cerr << "Do you want any prompts? Enter 'true' if yes, 'false' if no: ";
Newcin >> prompt;
if (prompt){
cerr << "Prompt";
}
Input in;
in.numbers.resize(number_count);
cerr << "Enter numbers: ";
for (size_t i = 0; i < number_count; i++) {
cin >> in.numbers[i];
Newcin >> in.numbers[i];
}
cerr << "Enter bin count: ";
cin >> in.bin_count;
Newcin >> in.bin_count;
cerr << "Enter stroke in format RGB: ";
cin >> in.stroke;
Newcin >> in.stroke;
cerr << "Enter fill in format RGB: ";
cin >> in.fill;
Newcin >> in.fill;
return in;
}
int
main() {
auto in = input_data(cin);
main(int argc, char* argv[]) {
if (argc > 1) {
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
res = curl_easy_perform(curl);
if (res != 0){
cout << curl_easy_strerror(res);
exit(1);
}
curl_easy_cleanup(curl);
}
return 0;
}
curl_global_init(CURL_GLOBAL_ALL);
auto in = input_data(cin);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins, in.stroke, in.fill);
}

Загрузка…
Отмена
Сохранить