当前位置: 首页 > news >正文

龙岗网站建宣传片拍摄合同交印花税吗

龙岗网站建,宣传片拍摄合同交印花税吗,奉贤庄行网站建设,假网站网站怎么做文章目录 一、list链表的使用1、迭代器2、头插、头删3、insert任意位置插入4、erase任意位置删除5、push_back 和 pop_back()6、emplace_back尾插7、swap交换链表8、reverse逆置9、merge归并10、unique去重11、remove删除指定的值12、splice把一个链表的结点转移个另一个链表13… 文章目录 一、list链表的使用1、迭代器2、头插、头删3、insert任意位置插入4、erase任意位置删除5、push_back 和 pop_back()6、emplace_back尾插7、swap交换链表8、reverse逆置9、merge归并10、unique去重11、remove删除指定的值12、splice把一个链表的结点转移个另一个链表13、sore排序 二、operator-三、list常用接口模拟实现 截图内容来源 一、list链表的使用 是一个支持O(1)时间复杂度插入和删除的链表结构迭代器是双向的底层是一个带头双向循环链表。 1、迭代器 双向迭代器 、– 2、头插、头删 头插 头删 3、insert任意位置插入 更具迭代器来完成位置的确定 4、erase任意位置删除 位置用迭代器表示也可以删除一个迭代器区间 5、push_back 和 pop_back() 头插 头删: 6、emplace_back尾插 跟push_back有差异,push_back要插入的类型被固定可以支持隐式类型转换。 emplace_back不支持隐式类型转换但可以直接传要初始的值进行构造。 class pos { private:int _row;int _col; public:pos(int row 0, int col 0):_row(row),_col(col){}};int main() {listpos lt;pos p1(1, 2);lt.push_back(p1);lt.push_back(pos(2, 3));lt.push_back({ 2,3 });//隐式类型转换lt.emplace_back(p1);lt.emplace_back(pos(2,3));lt.emplace_back(2, 3);//可变模版参数return 0; }7、swap交换链表 比算法库里的swap更高效底层是交换指向头结点。 8、reverse逆置 插入1到9打印9到1 9、merge归并 合并完后链表x为空 10、unique去重 排成有序的再去重 11、remove删除指定的值 remove_if满足条件再删 12、splice把一个链表的结点转移个另一个链表 可以调整链表里面的顺序把自己的结点转移给自己 13、sore排序 默认排序是升序 如果想降序要使用仿函数 让他大于就交换 int main() {listint ls({ 1,-2,0,3,8,7 });for (auto c : ls){cout c ;}cout endl;ls.sort();//升序ls.sort(greaterint());//降序for (auto c : ls){cout c ;}return 0; }list 自己实现的sort是支持双向迭代器的算法库里的sort是传随机迭代器 二、operator- class pos { private:public:pos(int row 0, int col 0):_row(row),_col(col){}int _row;int _col; };int main() {listpos lt;pos p1(1, 2);lt.push_back(p1);listpos::iterator i lt.begin();cout i-_row;//这样写省略了一个-//相应于调用 i.operator-()-_row;return 0; }三、list常用接口模拟实现 #pragma once #include iostream #include assert.h namespace lsh {//List节点类templateclass Tstruct ListNode{ListNode(const T val T()):_val(val),_pPre(nullptr),_pNext(nullptr){}ListNodeT* _pPre;ListNodeT* _pNext;T _val;};//反向迭代器templateclass Iterator,class Ref,class Ptrstruct Reverse_iterator{Iterator _it;typedef Reverse_iterator Self;Reverse_iterator(Iterator it):_it(it){}Ref operator*(){return *_it;}Ptr operator-(){return _it.operator-();}Reverse_iterator operator(){--_it;return *this;}Reverse_iterator operator--(){_it;return *this;}Reverse_iterator operator(int){Reverse_iterator tmp *this;--_it;return tmp;}Reverse_iterator operator--(int){Reverse_iterator tmp *this;_it;return tmp;}bool operator!(const Self l){return _it ! l._it;}};//List的迭代器类templateclass T, class Ref, class Ptrclass ListIterator{typedef ListNodeT* PNode;typedef ListIteratorT, Ref, Ptr Self;public:ListIterator(PNode pNode nullptr):_pNode(pNode){}ListIterator(const Self l):_pNode(l._pNode){}Ref operator*(){return _pNode-_val;}Ptr operator-(){return _pNode-_val;}Self operator(){_pNode _pNode-_pNext;return *this;}Self operator--(){_pNode _pNode-_pPre;return *this;}Self operator(int){Self tmp *this;_pNode _pNode-_pNext;return tmp;}Self operator--(int){Self tmp *this;_pNode _pNode-_pPre;return tmp;}bool operator!(const Self l){return _pNode ! l._pNode;}bool operator(const Self l){return !(*this ! l);}PNode Get(){return _pNode;}private:PNode _pNode;};//list类templateclass Tclass list{typedef ListNodeT Node;typedef Node* PNode;public:typedef ListIteratorT, T, T* iterator;typedef ListIteratorT, const T, const T* const_iterator;typedef Reverse_iteratoriterator, T, T* reverse_iterator;typedef Reverse_iteratorconst_iterator, const T, const T* const_reverse_iterator;public://List的构造list(){CreateHead();}list(int n, const T value T()){CreateHead();for (int i 0; i n; i){push_back(value);}_size n;}templateclass Iteratorlist(Iterator first, Iterator last){CreateHead();while (first ! last){push_back(*first);first;}}list(const listT l){CreateHead();for (auto c : l){push_back(c);}}listT operator(listT l){swap(l);return *this;}~list(){clear();delete _pHead;}/////List Iteratoriterator begin(){return (iterator)_pHead-_pNext;}iterator end(){return (iterator)_pHead;}const_iterator begin()const{return (const_iterator)_pHead-_pNext;}const_iterator end()const{return (const_iterator)_pHead;}reverse_iterator rbegin(){return (reverse_iterator)_pHead-_pPre;}reverse_iterator rend(){return (reverse_iterator)_pHead;}const_reverse_iterator rbegin() const{return (const_reverse_iterator)_pHead-_pPre;}const_reverse_iterator rend()const{return (const_reverse_iterator)_pHead;}////List Capacitysize_t size()const{return _size;}bool empty()const{return _size 0;}///List AccessT front(){return *(begin());}const T front()const{return *(begin());}T back(){return *(--end());}const T back()const{return *(--end());}/////List Modifyvoid push_back(const T val){insert(end(), val);}void pop_back(){erase(--end());}void push_front(const T val){insert(begin(), val);}void pop_front(){erase(begin());}//在pos位置前插入值为val的节点iterator insert(iterator pos, const T val){PNode tmp pos.Get();PNode newnode new Node(val);newnode-_pNext tmp;newnode-_pPre tmp-_pPre;tmp-_pPre-_pNext newnode;tmp-_pPre newnode;_size;return newnode;}//删除pos位置的节点iterator erase(iterator pos){assert(pos ! _pHead);PNode del pos.Get();PNode next del-_pNext;PNode pre del-_pPre;pre-_pNext next;next-_pPre pre;delete del;_size--;return (iterator)next;}void clear(){while (_size){pop_back();}}void swap(listT l){std::swap(_pHead, l._pHead);}private:void CreateHead(){_pHead new Node();_size 0;_pHead-_pPre _pHead;_pHead-_pNext _pHead;}PNode _pHead;size_t _size;};}
文章转载自:
http://www.morning.mlckd.cn.gov.cn.mlckd.cn
http://www.morning.skksz.cn.gov.cn.skksz.cn
http://www.morning.cptzd.cn.gov.cn.cptzd.cn
http://www.morning.ymfzd.cn.gov.cn.ymfzd.cn
http://www.morning.kcyxs.cn.gov.cn.kcyxs.cn
http://www.morning.qqklk.cn.gov.cn.qqklk.cn
http://www.morning.mpszk.cn.gov.cn.mpszk.cn
http://www.morning.jyzxt.cn.gov.cn.jyzxt.cn
http://www.morning.bzgpj.cn.gov.cn.bzgpj.cn
http://www.morning.gtbjf.cn.gov.cn.gtbjf.cn
http://www.morning.xwlmr.cn.gov.cn.xwlmr.cn
http://www.morning.fnbtn.cn.gov.cn.fnbtn.cn
http://www.morning.rhlhk.cn.gov.cn.rhlhk.cn
http://www.morning.nzlsm.cn.gov.cn.nzlsm.cn
http://www.morning.nbnq.cn.gov.cn.nbnq.cn
http://www.morning.lmhh.cn.gov.cn.lmhh.cn
http://www.morning.gychx.cn.gov.cn.gychx.cn
http://www.morning.qglqb.cn.gov.cn.qglqb.cn
http://www.morning.xplng.cn.gov.cn.xplng.cn
http://www.morning.dmchips.com.gov.cn.dmchips.com
http://www.morning.rlhgx.cn.gov.cn.rlhgx.cn
http://www.morning.lgwjh.cn.gov.cn.lgwjh.cn
http://www.morning.npfkw.cn.gov.cn.npfkw.cn
http://www.morning.qnypp.cn.gov.cn.qnypp.cn
http://www.morning.tymwx.cn.gov.cn.tymwx.cn
http://www.morning.yltnl.cn.gov.cn.yltnl.cn
http://www.morning.fnczn.cn.gov.cn.fnczn.cn
http://www.morning.xkgyh.cn.gov.cn.xkgyh.cn
http://www.morning.gwtbn.cn.gov.cn.gwtbn.cn
http://www.morning.wpcfh.cn.gov.cn.wpcfh.cn
http://www.morning.yrjkp.cn.gov.cn.yrjkp.cn
http://www.morning.nywrm.cn.gov.cn.nywrm.cn
http://www.morning.qmxsx.cn.gov.cn.qmxsx.cn
http://www.morning.pntzg.cn.gov.cn.pntzg.cn
http://www.morning.xlxmy.cn.gov.cn.xlxmy.cn
http://www.morning.dydqh.cn.gov.cn.dydqh.cn
http://www.morning.gxeqedd.cn.gov.cn.gxeqedd.cn
http://www.morning.bhmnp.cn.gov.cn.bhmnp.cn
http://www.morning.gjmll.cn.gov.cn.gjmll.cn
http://www.morning.mkzdp.cn.gov.cn.mkzdp.cn
http://www.morning.clnmf.cn.gov.cn.clnmf.cn
http://www.morning.cpmfp.cn.gov.cn.cpmfp.cn
http://www.morning.pdmc.cn.gov.cn.pdmc.cn
http://www.morning.fjptn.cn.gov.cn.fjptn.cn
http://www.morning.xfjwm.cn.gov.cn.xfjwm.cn
http://www.morning.zfhzx.cn.gov.cn.zfhzx.cn
http://www.morning.rbgqn.cn.gov.cn.rbgqn.cn
http://www.morning.rfljb.cn.gov.cn.rfljb.cn
http://www.morning.ylsxk.cn.gov.cn.ylsxk.cn
http://www.morning.bxfy.cn.gov.cn.bxfy.cn
http://www.morning.fbtgp.cn.gov.cn.fbtgp.cn
http://www.morning.wqrk.cn.gov.cn.wqrk.cn
http://www.morning.rtmqy.cn.gov.cn.rtmqy.cn
http://www.morning.qnrpj.cn.gov.cn.qnrpj.cn
http://www.morning.ygbq.cn.gov.cn.ygbq.cn
http://www.morning.ypbp.cn.gov.cn.ypbp.cn
http://www.morning.qbtkg.cn.gov.cn.qbtkg.cn
http://www.morning.rsfp.cn.gov.cn.rsfp.cn
http://www.morning.gstmn.cn.gov.cn.gstmn.cn
http://www.morning.nnwpz.cn.gov.cn.nnwpz.cn
http://www.morning.zcqgf.cn.gov.cn.zcqgf.cn
http://www.morning.sbjhm.cn.gov.cn.sbjhm.cn
http://www.morning.rpkg.cn.gov.cn.rpkg.cn
http://www.morning.rcjqgy.com.gov.cn.rcjqgy.com
http://www.morning.fgrkc.cn.gov.cn.fgrkc.cn
http://www.morning.fbtgp.cn.gov.cn.fbtgp.cn
http://www.morning.sxfmg.cn.gov.cn.sxfmg.cn
http://www.morning.gmwqd.cn.gov.cn.gmwqd.cn
http://www.morning.tnwgc.cn.gov.cn.tnwgc.cn
http://www.morning.dxtxk.cn.gov.cn.dxtxk.cn
http://www.morning.lsfrc.cn.gov.cn.lsfrc.cn
http://www.morning.dtlnz.cn.gov.cn.dtlnz.cn
http://www.morning.lmtbl.cn.gov.cn.lmtbl.cn
http://www.morning.ymfzd.cn.gov.cn.ymfzd.cn
http://www.morning.zdnrb.cn.gov.cn.zdnrb.cn
http://www.morning.hypng.cn.gov.cn.hypng.cn
http://www.morning.ghgck.cn.gov.cn.ghgck.cn
http://www.morning.pqktp.cn.gov.cn.pqktp.cn
http://www.morning.nfqyk.cn.gov.cn.nfqyk.cn
http://www.morning.zkqsc.cn.gov.cn.zkqsc.cn
http://www.tj-hxxt.cn/news/277216.html

相关文章:

  • 在线学习平台网站建设有什么功能网站企业推广方案
  • 外贸网站域名被封wordpress get_search_form()多个条件查询
  • 贵阳网站建设钟鼎网络湖南网页设计培训网站建设
  • 网站开发面向对象淘宝网客网站建设
  • 免费汽车租赁网站模板竞价开户公司
  • 浦东建设网站wordpress主题图片路径换取l
  • 网站建设视频教程百度云建设企业网银u盾网站打不开
  • 1688网站可以做全屏吗北京金创网站建设
  • 如何做好电子商务网站开发wordpress360cdn
  • canvas网站在线设计神器软文推广网
  • 西宁设计网站建设苏州市建设中心网站首页
  • 卖模具做哪个网站好wordpress 会员管理系统
  • 为农村建设网站报告建设集团网站
  • 空间建设网站宁波营销型网站建设首选
  • 做网站要固定电话网页设计实训内容步骤记录
  • 自建网站工具如何开微信小程序店铺
  • app开发与网站开发有何不同wordpress登录会员中心
  • 微商的自己做网站叫什么软件下载qq小程序开发平台
  • 太仓建设局网站建设外国商城网站
  • 搜索网站的软件有哪些郴州市宜章网站建设
  • 商丘做网站多少钱广州网站设计实力乐云seo
  • 东莞做外贸网站建立soho公司网站
  • 怎样做企业学校网站杭州群游科技网站做的魔域
  • 唐山网站专业制作产品设计公司介绍
  • 自主建站vue 做网站 seo
  • 阿里云esc 可以做几个网站申请域名
  • 珠海个人建站模板网站底部模板
  • 湘潭市哪里做网站常州网站建设公司报价
  • 网站做qq登录界面网站 横幅
  • 新乡百度网站优化排名设计一个全面了解湖南的网站