摘要: #include <iostream> #include <string> #include <list> using namespace std; list<int> no; int getIndex(int id) { int res=0; list<int>::iterator ii; for 阅读全文
posted @ 2022-02-28 17:09 icefield817 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include <string> using namespace std; template <class T1, class T2> void Copy(T1 s, T1 e, T2 x) { for (; s != e; 阅读全文
posted @ 2022-02-28 15:52 icefield817 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <list> using namespace std; int main() { double a[] = { 1.2,3.4,9.8,7.3,2.6 }; lis 阅读全文
posted @ 2022-02-28 15:26 icefield817 阅读(58) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; struct A { int v; A() { } A(int n) :v(n) { }; bool operator<(const A& a) const { return v < 阅读全文
posted @ 2022-02-28 14:56 icefield817 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iomanip> #include <cstring> using namespace std; template <class T> class CArray3D { // 在此处补充你的代码 public: int x, y, z; T 阅读全文
posted @ 2022-02-28 14:38 icefield817 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cmath> #include <algorithm> #include <string> using namespace std; template <class T1, class T2> struct Closer { // 在此处补 阅读全文
posted @ 2022-02-28 10:41 icefield817 阅读(47) 评论(0) 推荐(0) 编辑