From dc10116b16a05df5e2bcbbf42e7fd0e24b9e27aa Mon Sep 17 00:00:00 2001 From: estomm Date: Thu, 29 Apr 2021 15:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a.cpp | 21 ++++++++++ b.cpp | 64 ++++++++++++++++++++++++++++++ 工作日志/2021年4月29日-会议记录.md | 10 +++++ 3 files changed, 95 insertions(+) create mode 100644 a.cpp create mode 100644 b.cpp create mode 100644 工作日志/2021年4月29日-会议记录.md diff --git a/a.cpp b/a.cpp new file mode 100644 index 00000000..39164866 --- /dev/null +++ b/a.cpp @@ -0,0 +1,21 @@ +#include +#include + +using namespace std; + +int main(){ + vector arr{-1, 3, -3, 4,5}; + vector temp(arr.size()+1,0); + for(int i=0;i0){ + temp[arr[i]]=1; + } + } + int i; + for(i=1;i +#include +#include +using namespace std; +struct Node{ + string name; + Node* next; + + Node(string _name){ + name = _name; + next=nullptr; + } +}; +class MyMap{ +public: + map m; + + void insert(string s,Node* node){ + if(m.count(s)>0){ + Node* temp= m[s]; + while(temp->next!=nullptr)temp=temp->next; + + temp->next = node; + } + else{ + m[s] = node; + } + } + + Node* find(string s){ + if(m.count(s)>0){ + return m[s]; + } + else{ + return nullptr; + } + } + +}; +int main(){ + MyMap mm; + string zhangsan("yanfabu"); + Node* nzhangsan=new Node("zhangsan"); + string wangyi("yanfabu"); + Node* nwangyi = new Node("wangyi"); + string lisi("shichangbu"); + Node* nlisi =new Node("lisi"); + mm.insert(zhangsan,nzhangsan); + mm.insert(wangyi,nwangyi); + mm.insert(lisi,nlisi); + + Node* node1 = mm.find("yanfabu"); + while(node1!=nullptr){ + cout<name; + node1=node1->next; + } + Node* node2 = mm.find("shichangbu"); + while(node2!=nullptr){ + cout<name; + node2=node2->next; + + } + return 0; +} \ No newline at end of file diff --git a/工作日志/2021年4月29日-会议记录.md b/工作日志/2021年4月29日-会议记录.md new file mode 100644 index 00000000..00736daa --- /dev/null +++ b/工作日志/2021年4月29日-会议记录.md @@ -0,0 +1,10 @@ +研究现状,国内外。别人如何解决问题。方法不完善,准确率不高。主要研究的方向。 + +设计实验,针对目前存在的问题,采取的技术。 + +恶意软件检测中问题的明确。有可以对比的对象。隐私保护的话,保护的对象、范围?保护的方法? + +同类的对比。文献综述需要明确相关研究工作作出的分析。 +技术选型。文献综述,不是技术选型。 + +理论上 \ No newline at end of file