init commit

This commit is contained in:
2024-03-19 01:05:51 +08:00
commit 199bbf2628
393 changed files with 34883 additions and 0 deletions

View File

@ -0,0 +1,38 @@
#include <iostream>
using namespace std;
class Pic
{
public:
string download(string url)
{
cout << "图片下载中...";
return url;
}
};
class PicProxy
{
protected:
Pic *pic;
public:
PicProxy()
{
pic = new Pic();
}
void download(string url)
{
cout<<"显示默认图片到列表\n";
cout<<"开启线程下载图片\n";
cout<<this->pic->download(url);
}
};
int main()
{
PicProxy* p=new PicProxy();
p->download("img1");
return 0;
}