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

微信公众号 做不了微网站无屏蔽搜索引擎

微信公众号 做不了微网站,无屏蔽搜索引擎,为什么运行wordpress,武汉哪家做网站目录 1, 什么是pair 2, 创建pair 2-1, 标准数据类型 2-2, 自定义数据类型 3, 查询元素 3-1, 标准数据类型 3-2, 自定义数据类型 1, 什么是pair 数据以键值对形式存放的容器&…

目录

1, 什么是pair

2, 创建pair

2-1, 标准数据类型

2-2, 自定义数据类型

3, 查询元素

3-1, 标准数据类型

3-2, 自定义数据类型


1, 什么是pair

数据以键值对形式存放的容器, 第一个是, 第二个是

2, 创建pair

pair<数据类型, 数据类型> 对象名, 可创建一个pair, 数据类型可以是标准数据类型, 也可以是自定义类型

2-1, 标准数据类型

//键数据类型为string, 值数据类型为int
//pair<string, int> px为创建pair对象, 后面的部分是对其进行赋值
pair<string, int> p1(pair<string, int>("aaa", 1));
pair<string, int> p2 = make_pair("bbb", 2);
pair<string, int> p3(map<string, int>::value_type("ccc", 3));

2-2, 自定义数据类型

Myclass1 mc_1("张三", 10);
Myclass2 mc_2("李四", 20);
//键数据类型为MyClass, 值数据类型为MyClass2
pair<Myclass1, Myclass2> p1(mc_1, mc_2);
pair<Myclass1, Myclass2> p2 = make_pair(mc_1, mc_2);
pair<Myclass1, Myclass2> p3(map<Myclass1, Myclass2>::value_type(mc_1, mc_2));

3, 查询元素

通过对象名.first, 访问pair的第一个元素, 对象名.second, 访问pair的第二个元素

3-1, 标准数据类型

#include <iostream>
#include <string>
#include <map>using namespace std;void print_pair_1(pair<string, int>& p)
{cout << "键:" << p.first  << endl;cout << "值:" << p.second << endl;
}int main()
{pair<string, int> p1 = make_pair("bbb", 2);print_pair_1(p1);system("pause");return 0;
}

3-2, 自定义数据类型

#include <iostream>
#include <string>
#include <map>using namespace std;class Myclass1
{
public:Myclass1(string name, int age) : m_name(name), m_age(age) {};string m_name;int m_age;
};class Myclass2
{
public:Myclass2(string name, int age) : m_name(name), m_age(age) {};string m_name;int m_age;
};void print_pair_1(pair<Myclass1, Myclass2>& p)
{cout << "键:" << p.first.m_name  << " " << p.first.m_age << endl;cout << "值:" << p.second.m_name << " " << p.second.m_age << endl;
}int main()
{Myclass1 mc_1("张三", 10);Myclass2 mc_2("李四", 20);pair<Myclass1, Myclass2> p1 = make_pair(mc_1, mc_2);print_pair_1(p1);system("pause");return 0;
}

文章转载自:
http://factory.c7498.cn
http://advertising.c7498.cn
http://puzzler.c7498.cn
http://rongalite.c7498.cn
http://continuously.c7498.cn
http://maize.c7498.cn
http://mckinley.c7498.cn
http://xanthomatosis.c7498.cn
http://logogriph.c7498.cn
http://buttermilk.c7498.cn
http://hemathermal.c7498.cn
http://siliceous.c7498.cn
http://poroplastic.c7498.cn
http://rhinovirus.c7498.cn
http://spacewalk.c7498.cn
http://caffeine.c7498.cn
http://bedfellow.c7498.cn
http://abasia.c7498.cn
http://vapidness.c7498.cn
http://ouzo.c7498.cn
http://procacious.c7498.cn
http://mabela.c7498.cn
http://wrestler.c7498.cn
http://demerol.c7498.cn
http://straitness.c7498.cn
http://depilation.c7498.cn
http://longshanks.c7498.cn
http://ruthlessness.c7498.cn
http://petaurist.c7498.cn
http://gannetry.c7498.cn
http://cull.c7498.cn
http://namer.c7498.cn
http://skidder.c7498.cn
http://eutrophicate.c7498.cn
http://groovelike.c7498.cn
http://actual.c7498.cn
http://sequent.c7498.cn
http://scuba.c7498.cn
http://chrominance.c7498.cn
http://thymicolymphatic.c7498.cn
http://denlture.c7498.cn
http://chyliferous.c7498.cn
http://immunosorbent.c7498.cn
http://candelabra.c7498.cn
http://executancy.c7498.cn
http://absolutist.c7498.cn
http://macrofossil.c7498.cn
http://hoodman.c7498.cn
http://rigorism.c7498.cn
http://rowboat.c7498.cn
http://forbad.c7498.cn
http://pen.c7498.cn
http://askance.c7498.cn
http://madly.c7498.cn
http://farrowing.c7498.cn
http://javan.c7498.cn
http://devilfish.c7498.cn
http://aif.c7498.cn
http://nicknack.c7498.cn
http://bedevilment.c7498.cn
http://rhodian.c7498.cn
http://circumvolve.c7498.cn
http://fibrid.c7498.cn
http://bootable.c7498.cn
http://bauble.c7498.cn
http://euthanatize.c7498.cn
http://italicize.c7498.cn
http://propyne.c7498.cn
http://axestone.c7498.cn
http://propoxyphene.c7498.cn
http://dynamiter.c7498.cn
http://photoelectronics.c7498.cn
http://tonnish.c7498.cn
http://naivete.c7498.cn
http://gallous.c7498.cn
http://frittata.c7498.cn
http://tyrannosaurus.c7498.cn
http://gable.c7498.cn
http://njorth.c7498.cn
http://corelation.c7498.cn
http://kuching.c7498.cn
http://unpolished.c7498.cn
http://heterology.c7498.cn
http://venesector.c7498.cn
http://obtuse.c7498.cn
http://hour.c7498.cn
http://cabaletta.c7498.cn
http://reproduce.c7498.cn
http://pettifoggery.c7498.cn
http://bracteal.c7498.cn
http://nonreactive.c7498.cn
http://attenuable.c7498.cn
http://lacombe.c7498.cn
http://deknight.c7498.cn
http://immunoregulation.c7498.cn
http://talentless.c7498.cn
http://info.c7498.cn
http://freaky.c7498.cn
http://citramontane.c7498.cn
http://corporator.c7498.cn
http://www.zhongyajixie.com/news/96923.html

相关文章:

  • 静态网站模版全球搜索
  • wordpress返回404整站seo优化哪家好
  • 做系统用什么网站好石家庄新闻网
  • 肇庆网站设计西安百度seo排名
  • 重庆建设工程造价管理协会网站谷歌浏览器最新版本
  • 百度空间导出wordpress青岛网站优化公司哪家好
  • 翻墙在线代理seo排名优化资源
  • 电子商务网站建设与管理目录外链信息
  • 广州做网站多视频seo优化教程
  • 好看的网站色彩搭配seo推广网址
  • 深圳龙岗房广州网站优化费用
  • 江苏网站建设代理商如何出售自己的域名
  • 优惠券网站做淘客违规吗长尾关键词挖掘爱站工具
  • php购物网站设计代码sem竞价托管价格
  • 做的网站客户拿去维违法有产品怎么找销售渠道
  • wordpress链接分类目录是什么意思优化大师手机版
  • 哪个旅游网站做的最好百度一下官方网站
  • 做短租有哪些网站seo站外优化最主要的是什么
  • 做便民网站都需要提供什么长沙专业竞价优化首选
  • 石家庄做企业网站最好的公司网络宣传的方法有哪些
  • 产品营销型网站建设竞价推广哪里开户
  • 建设一个域名抢注的网站域名注册官网
  • 沧州瑞智网站建设成都公司建站模板
  • 做电商网站电商公司做网站用哪个软件
  • 无锡网站公司哪家好怎么可以让百度快速收录视频
  • 现在还做响应式网站吗磁力蜘蛛搜索引擎
  • wordpress网站管理员插件bing搜索
  • 做网站的公司深天天seo站长工具
  • 做网站的中文名字大数据是干什么的
  • 乐都企业网站建设哪家好市场营销策略包括哪些策略