code: добавлено получение аргументов программы
Этот коммит содержится в:
13
main.cpp
13
main.cpp
@@ -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);
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user