arguments
Этот коммит содержится в:
12
main.cpp
12
main.cpp
@@ -36,8 +36,18 @@ input_data(istream& in, bool prompt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
if (argc > 1)
|
||||||
|
{
|
||||||
|
cout << argc;
|
||||||
|
for (size_t i = 0; i < argc; i++)
|
||||||
|
{
|
||||||
|
cout << "argv[" << i << "]=" << argv[i];
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
bool prompt = false;
|
bool prompt = false;
|
||||||
auto in = input_data(cin, prompt);
|
auto in = input_data(cin, prompt);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user