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

master
MokeevNV 2 недель назад
Родитель 75800fcc95
Сommit 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);

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