wget方式
终端直接
system调用wget
system用法:c++调系统命令-system方法
#include <iostream>
using namespace std;
int main()
{
string cmdStr = "wget http://xxx.jpg";
int signal = system(cmdStr.c_str());
if (signal == 0) { cout << "wget downlaod success" << endl;}
}