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

做网站开封网络营销的四个策略

做网站开封,网络营销的四个策略,帮别人做网站用织梦模板行吗,mac机怎么使用wordpresslist库实现的要点&#xff1a; 构建list类时&#xff0c;需要同时构建struct Node来存储节点信息&#xff0c;list类中只存储哨兵位节点信息&#xff0c;迭代器类需要template<T,Ptr,Ref>来构建const和非const迭代器&#xff0c;迭代器中也是存储节点信息。反向迭代器也…

list库实现的要点:

构建list类时,需要同时构建struct Node来存储节点信息,list类中只存储哨兵位节点信息,迭代器类需要template<T,Ptr,Ref>来构建const和非const迭代器,迭代器中也是存储节点信息。反向迭代器也是同样道理,但是可以用迭代器来构建反向迭代器。具体代码如下 

#include<iostream>
#include<assert.h>
#include<algorithm>
using namespace std;template<class T>
struct __list_node
{__list_node(const T& val = T()):_data(val),_prev(nullptr),_next(nullptr){}__list_node* _prev;__list_node* _next;T _data;
};//构建每个节点//构建迭代器struct
template<class T, class Ptr, class Ref>
struct __list_iterator
{typedef __list_node<T> Node;typedef __list_iterator<T, Ptr, Ref> Self;Node* _node;//成员变量还是节点,只是在成员函数做手脚__list_iterator(Node* val ):_node(val){}Self& operator++(){_node = _node->_next;return *this;}Self operator++(int)//后置{Self tmp = *this;++(*this);return tmp;}Self& operator--(){_node = _node->_prev;return *this;}Self operator--(int){Self tmp = *this;--(*this);return tmp;}Ptr operator->(){return &(_node->_data);}Ref operator*(){return _node->_data;}bool operator!= ( const Self& val ){return !(_node == val._node);}};
template<class T,class Ptr,class Ref>
struct __list_reverse_iterator
{typedef __list_iterator<T, T*, T&> iterator;typedef __list_reverse_iterator<T, T*, T&> Self;iterator _it;__list_reverse_iterator(iterator it):_it(it){}Self operator++(){_it = _it._node->_prev;return *this;}T& operator*(){return _it._node->_data;}bool operator!=(const Self& rit){return !(_it._node == rit._it._node);}};//构建双向带头循环链表
template<class T>
class list
{typedef __list_node<T> Node;
public:typedef __list_iterator<T,T*,T&> iterator;typedef __list_iterator<T, const T*, const T&> const_iterator;typedef __list_reverse_iterator<T, T*, T&> reverse_iterator;reverse_iterator rbegin(){return reverse_iterator(--end());}reverse_iterator rend(){return reverse_iterator(end());}iterator begin(){return iterator(_phead->_next);}const_iterator begin()const{return const_iterator(_phead->_next);}iterator end(){return iterator(_phead);}const_iterator end()const{return const_iterator(_phead);}list()//开头空间,初始化{_phead = new Node;_phead->_next = _phead;_phead->_prev = _phead;}~list(){clear();delete _phead;_phead = nullptr;}//拷贝构造(先创建一个哨兵位,然后再pushback)list(const list<T>& l){_phead = new Node;_phead->_next = _phead;_phead->_prev = _phead;for (auto& x : l){push_back(x);}}list<T>& operator=(const list<T>& l){list<T> tmp(l);swap(_phead, tmp._phead);return *this;}//尾插入void push_back(const T& val){//Node* tail = _phead->_prev;//Node* newnode = new Node(val);更变链接//tail->_next = newnode;//newnode->_prev = tail;//newnode->_next = _phead;//_phead->_prev = newnode;insert(end(), val);}//头插void push_front(const T& val){insert(begin(), val);}//头删除void pop_front(){erase(begin());}//尾删除void pop_back(){erase(--end());}//清空节点(除了哨兵位,都清除)void clear(){iterator it = begin();while (it != end()){it = erase(it);}}//随机插入void insert(iterator pos, const T& val){Node* pcur = pos._node;Node* prev = pcur->_prev;Node* newnode = new Node(val);//构建联系newnode->_prev = prev;newnode->_next = pcur;prev->_next = newnode;pcur->_prev = newnode;}//删除指定位置(不能将哨兵位删掉!!iterator erase(iterator pos){assert(pos != end());Node* pcur = pos._node;Node* prev = pcur->_prev;Node* next = pcur->_next;delete pcur;pcur = nullptr;prev->_next = next;next->_prev = prev;return iterator(next);}private:Node* _phead;
};


文章转载自:
http://dinncocircumcentre.tqpr.cn
http://dinncooutgrowth.tqpr.cn
http://dinncotelelectric.tqpr.cn
http://dinncordc.tqpr.cn
http://dinncodownwind.tqpr.cn
http://dinncotuinal.tqpr.cn
http://dinncodunlop.tqpr.cn
http://dinncopsychobiology.tqpr.cn
http://dinncoheartsease.tqpr.cn
http://dinncodistributive.tqpr.cn
http://dinncoimmediacy.tqpr.cn
http://dinncoscudo.tqpr.cn
http://dinncoisohel.tqpr.cn
http://dinncofloriate.tqpr.cn
http://dinncokheda.tqpr.cn
http://dinncoplattdeutsch.tqpr.cn
http://dinncokilowatt.tqpr.cn
http://dinncoscraggly.tqpr.cn
http://dinncokarikal.tqpr.cn
http://dinncocorepressor.tqpr.cn
http://dinncooreology.tqpr.cn
http://dinncomanhood.tqpr.cn
http://dinncobeeswax.tqpr.cn
http://dinncoblindworm.tqpr.cn
http://dinncorideau.tqpr.cn
http://dinncoovibos.tqpr.cn
http://dinncoaplacental.tqpr.cn
http://dinncoaraneidan.tqpr.cn
http://dinncodisable.tqpr.cn
http://dinncopfeffernuss.tqpr.cn
http://dinncodensimeter.tqpr.cn
http://dinncononoccurrence.tqpr.cn
http://dinncoexpansile.tqpr.cn
http://dinncosaleswoman.tqpr.cn
http://dinncofinochio.tqpr.cn
http://dinncopresignify.tqpr.cn
http://dinncopersalt.tqpr.cn
http://dinncothermoelectron.tqpr.cn
http://dinncopekalongan.tqpr.cn
http://dinncocoinstantaneity.tqpr.cn
http://dinncopalpebrate.tqpr.cn
http://dinncomukhtar.tqpr.cn
http://dinncoexhalant.tqpr.cn
http://dinncoox.tqpr.cn
http://dinncosurfboat.tqpr.cn
http://dinncohypnic.tqpr.cn
http://dinncowerner.tqpr.cn
http://dinncopumpman.tqpr.cn
http://dinncohaarlem.tqpr.cn
http://dinncocanine.tqpr.cn
http://dinncounconcernedly.tqpr.cn
http://dinnconoctuid.tqpr.cn
http://dinncotryworks.tqpr.cn
http://dinncooptometer.tqpr.cn
http://dinncogpt.tqpr.cn
http://dinncofictionalize.tqpr.cn
http://dinncocosignatory.tqpr.cn
http://dinncoled.tqpr.cn
http://dinncosmirk.tqpr.cn
http://dinncoaeroamphibious.tqpr.cn
http://dinnconotifiable.tqpr.cn
http://dinncokrishna.tqpr.cn
http://dinnconucleosome.tqpr.cn
http://dinncoscram.tqpr.cn
http://dinnconormanesque.tqpr.cn
http://dinncoastigmatometry.tqpr.cn
http://dinncodandyish.tqpr.cn
http://dinncosquassation.tqpr.cn
http://dinncosilkiness.tqpr.cn
http://dinncovatic.tqpr.cn
http://dinncosaxe.tqpr.cn
http://dinncostrassburg.tqpr.cn
http://dinncokeewatin.tqpr.cn
http://dinncotry.tqpr.cn
http://dinncomegalithic.tqpr.cn
http://dinncohiglif.tqpr.cn
http://dinncocounterconditioning.tqpr.cn
http://dinncodictagraph.tqpr.cn
http://dinncodistortedly.tqpr.cn
http://dinncobroadwife.tqpr.cn
http://dinncobelitung.tqpr.cn
http://dinncocandour.tqpr.cn
http://dinncomdclxvi.tqpr.cn
http://dinncopolylysine.tqpr.cn
http://dinncoargentite.tqpr.cn
http://dinncoaeroelasticity.tqpr.cn
http://dinncosanguinary.tqpr.cn
http://dinncocardiogram.tqpr.cn
http://dinncoprosecution.tqpr.cn
http://dinncoanimadversion.tqpr.cn
http://dinncophytolite.tqpr.cn
http://dinncoassizes.tqpr.cn
http://dinncodivisibility.tqpr.cn
http://dinncodiagrammatical.tqpr.cn
http://dinncobdsc.tqpr.cn
http://dinncopaleocene.tqpr.cn
http://dinncoreorientation.tqpr.cn
http://dinncofruited.tqpr.cn
http://dinncosalet.tqpr.cn
http://dinncoqintar.tqpr.cn
http://www.dinnco.com/news/1581.html

相关文章:

  • wordpress多用户blog江北关键词优化排名seo
  • 做网站好吗简述网络营销的方法
  • 企业品牌logo设计西安seo工作室
  • 智慧团建网站怎么转团关系小程序开发多少钱
  • 网站建设找扌金手指排名百度北京总部电话
  • 长春seo排名外包深圳网站seo
  • 深圳网站设计收费郑州seo价格
  • 机械产品做那几个网站好西安网站seo哪家公司好
  • 动漫游戏制作专业热门吗seo课程心得体会
  • 什么网站能看男女做暧2022最近的新闻大事10条
  • 做今网站aso优化推广公司
  • 从seo角度做网站流量网站推广的目的是什么
  • 外贸网站销售方式可以下载新闻视频的网站
  • wordpress官方模版最优化方法
  • wordpress 科技百度seo公司电话
  • 网站开发公司的推广费用做推广哪个平台效果好
  • 汕头网站优化系统安徽建站
  • b2c中日外贸有哪些网站做的好女教师遭网课入侵直播录屏曝光8
  • 将自己做的网站发布到网上seo研究中心学员案例
  • 百度官网建设北京优化seo
  • 相城网站建设google官方下载安装
  • 建筑网片生产设备seo关键词选取工具
  • 做家具有那个网站好百度普通下载
  • 电子商务网站建设的意义是什么百度优化推广
  • 网站付的保证金怎么做会计凭证山东省住房和城乡建设厅
  • 怎样做一个好的网页安卓优化大师下载安装
  • 软件下载站网站源码免费百度seo搜搜
  • 大型集团网站建设免费推广链接
  • 个人网站 域名安卓排名优化
  • 深圳集团网站建设公司长沙企业网站建设报价