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

c 做网站怎么插入id必应bing搜索引擎

c 做网站怎么插入id,必应bing搜索引擎,b2c网站建设的要求,做淘宝美工和网站设计那个好目录 vector 1. vector的成员函数 1.1 构造、析构和赋值运算符重载 1.1.1 构造函数 1.1.2 析构函数 1.1.3 赋值运算符重载 1.2 迭代器 1.3 容量 1.4 元素访问 1.4.1 遍历方法 1.5 修改器 1.6 配置器 2. vector的非成员函数 vector 1. vector的成员函数 1.1 构造…

目录

vector

1. vector的成员函数

1.1 构造、析构和赋值运算符重载

1.1.1 构造函数

1.1.2 析构函数

1.1.3 赋值运算符重载

1.2 迭代器

1.3 容量

1.4 元素访问

1.4.1 遍历方法

1.5 修改器

1.6 配置器

2. vector的非成员函数


vector

1. vector的成员函数

1.1 构造、析构和赋值运算符重载

1.1.1 构造函数

default

explicit vector(const allocator_type& alloc = allocator_type());默认构造
fillexplicit vector(size_type n, const value_type& val = value_type(), const allocator_type& alloc = allocator_type());用n个val来构造
rangetemplate <class InputIterator>         vector(InputIterator first, InputIterator last, const allocator_type& alloc = allocator_type());用迭代器区间构造

copy

vector(const vector& x);

拷贝构造
#include <iostream>
#include <vector>
#include <string>using namespace std;int main()
{vector<int> v1;//defaultfor (size_t i = 0; i < v1.size(); ++i){cout << v1[i] << " ";}cout << endl;//空vector<int> v2(10, 1);//fillfor (size_t i = 0; i < v2.size(); ++i){cout << v2[i] << " ";}cout << endl;//1 1 1 1 1 1 1 1 1 1string s("hello world");vector<char> v3(s.begin() + 3, --s.end());//rangefor (size_t i = 0; i < v3.size(); ++i){cout << v3[i] << " ";}cout << endl;//l o   w o r lvector<char> v4(v3);//copyfor (size_t i = 0; i < v4.size(); ++i){cout << v4[i] << " ";}cout << endl;//l o   w o r lreturn 0;
}

1.1.2 析构函数

~vector();销毁vector类对象

1.1.3 赋值运算符重载

copyvector& operator= (const vector& x);

1.2 迭代器

begin&end    rbegin&rend    cbegin&cend    crbegin&crend

与string的迭代器类似,详见【C++】string的成员函数、成员常量和非成员函数_秋秋晗晗的博客-CSDN博客中1.2 迭代器

1.3 容量

size    max_size    resize    capacity    empty    reserve    shrink_to_fit

与string的容器类似,详见【C++】string的成员函数、成员常量和非成员函数_秋秋晗晗的博客-CSDN博客中1.3 容器

1.4 元素访问

operator[]    at    front    back    data

与string的元素访问类似,详见【C++】string的成员函数、成员常量和非成员函数_秋秋晗晗的博客-CSDN博客中1.4 元素访问

1.4.1 遍历方法

与string的遍历方法类似,详见【C++】string的成员函数、成员常量和非成员函数_秋秋晗晗的博客-CSDN博客中1.4.1 遍历方法

1.5 修改器

assign    push_back    pop_back    insert    erase    swap    clear    emplace    emplace_back

与string的修改器类似,详见【C++】string的成员函数、成员常量和非成员函数_秋秋晗晗的博客-CSDN博客中1.5 修改器

1.6 配置器

get_allocatorallocator_type get_allocator() const;返回配置器

2. vector的非成员函数

relational operatorstemplate <class T, class Alloc>  bool operator== (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
template <class T, class Alloc>  bool operator!= (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
template <class T, class Alloc>  bool operator<  (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
template <class T, class Alloc>  bool operator<= (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
template <class T, class Alloc>  bool operator>  (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
template <class T, class Alloc>  bool operator>= (const vector<T, Alloc>& lhs, const vector<T, Alloc>& rhs);
关系运算符重载
swaptemplate <class T, class Alloc>  void swap(vector<T, Alloc>& x, vector<T, Alloc>& y);交换vector的内容
http://www.hkea.cn/news/845548/

相关文章:

  • 网站 建设 原则新闻今天的最新新闻
  • 服装网站首页设计主要推广手段免费
  • 网站建设公司做销售好不好?seo搜索引擎优化实训总结
  • 江西威乐建设集团有限公司企业网站长春关键词优化公司
  • 深圳网站建设lxhd英文关键词seo
  • 在线购物商城网站百度移动端排名软件
  • 太原网站的公司友情链接的英文
  • 网站是用什么做的吗百度q3财报2022
  • 深圳福田网站建设公司如何做谷歌seo推广
  • 西安有做网站的吗北京网站设计公司
  • 哪家专门做特卖网站平台连接
  • 衢州网站推广最近发生的重大新闻
  • 网页设计的网站配色方案seo基础培训机构
  • 维护网站是什么工作淄博网站制作
  • 做电影下载网站成本淘宝关键词排名
  • 企业h5网站建设百度推广电话是多少
  • 中国保密在线网站培训系统软文怎么做
  • 山西住房城乡建设部网站整合网络营销是什么
  • 做美图网站有哪些东西吗个人博客seo
  • 南昌专业做网站公司竞价托管怎么做
  • 网站产品展示怎么做微信小程序建站
  • dw做网站的流程客户引流的最快方法是什么
  • 做网站app优惠活动的交换链接营销成功案例
  • 企业公示信息查询系统山西上海百度推广优化公司
  • 上海网站排名优化价格武汉百度快照优化排名
  • 做网站小程序如何做广告宣传与推广
  • 网站建设背景朝阳百度新闻网页
  • 专门做拼团的网站西安网站开发
  • 怎么看网站开发语言太原seo推广
  • 什么网站做宣传好新乡网站seo