code: + вывод массива argv и argc
Этот коммит содержится в:
22
l03.cpp
22
l03.cpp
@@ -60,8 +60,28 @@ input_data(istream& in, bool promt)
|
|||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int
|
||||||
|
main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if( argc > 1 ){
|
||||||
|
|
||||||
|
CURL* curl = curl_easy_init();
|
||||||
|
|
||||||
|
cout << argc << '\n';
|
||||||
|
//while (true)
|
||||||
|
for (int i = 0; i < argc; i++){
|
||||||
|
|
||||||
|
cout << argv[i] << " ";
|
||||||
|
}
|
||||||
|
cout << endl;
|
||||||
|
|
||||||
|
curl_easy_cleanup(curl);
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
auto input = input_data(cin, true);
|
auto input = input_data(cin, true);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user