code: добавлено получение аргументов программы

Этот коммит содержится в:
2025-05-21 19:12:52 +03:00
родитель 75800fcc95
Коммит ec76b9b87f

Просмотреть файл

@@ -3,6 +3,9 @@
#include "histogram.h"
#include "text.h"
#include "svg.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
@@ -37,7 +40,15 @@ Input input_data(istream& in, bool promt = false) {
return qin;
}
int main() {
int main(int argc, char* argv[]) {
if(argc > 1) {
cout << "argc = " << argc << endl;
for(int i = 0; i < argc; i++){
cout << "argv[" << i << "] = " << argv[i] << endl;
}
return 0;
}
curl_global_init(CURL_GLOBAL_ALL);