code: main parametrs
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -31,8 +31,14 @@ Input input_data(istream& in, bool prompt = true)
|
||||
return input;
|
||||
}
|
||||
|
||||
int main()
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (argc > 1) {
|
||||
for (int i = 0; i > argc; i++) {
|
||||
cout << "argv[" << i << "] = " << argv[i];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
bool show_prompts;
|
||||
cout << "Show prompts? (1 for yes, 0 for no): ";
|
||||
|
||||
Ссылка в новой задаче
Block a user