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

十堰网站建设哪家好12月30日疫情最新消息

十堰网站建设哪家好,12月30日疫情最新消息,网页作业班级网站怎么做,建立校园网站0.前言 1.算术仿函数 #include <iostream> using namespace std;// STL-内建函数对象-算术仿函数 #include<functional> // 内建函数对象头文件//以下举例两个仿函数 -- negate and plus// negate 一元仿函数 取反仿函数 void test01() {negate<int>n;cout …

0.前言

在这里插入图片描述

1.算术仿函数

在这里插入图片描述

#include <iostream>
using namespace std;// STL-内建函数对象-算术仿函数
#include<functional>  // 内建函数对象头文件//以下举例两个仿函数 -- negate and plus// negate 一元仿函数 取反仿函数
void test01()
{negate<int>n;cout << n(40) << endl;
}// plus 二元仿函数 加法
void test02()
{plus<int>p;cout << p(40, 10) << endl;
}int main()
{test01();cout << "------------------------" << endl;test02();//cout << "------------------------" << endl << endl;//test03();//**************************************system("pause");return 0;
} 

在这里插入图片描述

2.关系仿函数

在这里插入图片描述
在这里插入图片描述

#include <iostream>
using namespace std;// STL-内建函数对象-关系仿函数
//举例  -- 大于 greater
#include<vector>
#include<algorithm>
#include<functional>class MyCompare
{
public:bool operator()(int val1, int val2){return val1 > val2;}
};void test01()
{vector<int>v;v.push_back(10);v.push_back(40);v.push_back(20);v.push_back(30);v.push_back(50);for (vector<int>::iterator it = v.begin(); it != v.end(); it++){cout << *it << " ";}cout << endl;//降序// sort(v.begin(), v.end(), MyCompare());//greater<int>() 内建函数对象sort(v.begin(), v.end(), greater<int>()); for (vector<int>::iterator it = v.begin(); it != v.end(); it++){cout << *it << " ";}cout << endl;
}int main()
{test01();cout << "------------------------" << endl;//test02();//cout << "------------------------" << endl << endl;//test03();//**************************************system("pause");return 0;
} 

在这里插入图片描述

3.逻辑仿函数

在这里插入图片描述
在这里插入图片描述

#include <iostream>
using namespace std;// STL-内建函数对象-逻辑仿函数
//举例  -- 逻辑非 logical_not
#include<vector>
#include<algorithm>
#include<functional>void test01()
{vector<bool>v;v.push_back(true);v.push_back(false);v.push_back(true);v.push_back(false);for (vector<bool>::iterator it = v.begin(); it != v.end(); it++){cout << *it << " ";}cout << endl;//利用逻辑非 将容器v搬运到 容器v2中, 并执行取反操作vector<bool>v2;v2.resize(v.size());transform(v.begin(), v.end(), v2.begin(), logical_not<bool>());for (vector<bool>::iterator it = v2.begin(); it != v2.end(); it++){cout << *it << " ";}cout << endl;
}int main()
{test01();cout << "------------------------" << endl;//test02();//cout << "------------------------" << endl << endl;//test03();//**************************************system("pause");return 0;
} 

在这里插入图片描述


文章转载自:
http://cinnamyl.c7513.cn
http://suffocatingly.c7513.cn
http://qualm.c7513.cn
http://circumference.c7513.cn
http://ptv.c7513.cn
http://clc.c7513.cn
http://pinchcock.c7513.cn
http://sahuaro.c7513.cn
http://sched.c7513.cn
http://chibcha.c7513.cn
http://betrayer.c7513.cn
http://pseudoscope.c7513.cn
http://youthhood.c7513.cn
http://cooky.c7513.cn
http://flirt.c7513.cn
http://mizzenmast.c7513.cn
http://vasty.c7513.cn
http://leu.c7513.cn
http://bullfight.c7513.cn
http://halogeton.c7513.cn
http://cephalalgia.c7513.cn
http://wringer.c7513.cn
http://charoseth.c7513.cn
http://acusector.c7513.cn
http://envionment.c7513.cn
http://dissociative.c7513.cn
http://stork.c7513.cn
http://photoisomerization.c7513.cn
http://carpophagous.c7513.cn
http://arbor.c7513.cn
http://nearside.c7513.cn
http://trichrome.c7513.cn
http://ruffle.c7513.cn
http://acetabularia.c7513.cn
http://exodontics.c7513.cn
http://haemoflagellate.c7513.cn
http://fleshpot.c7513.cn
http://amdg.c7513.cn
http://disembarrassment.c7513.cn
http://decolonize.c7513.cn
http://stickler.c7513.cn
http://govt.c7513.cn
http://countercurrent.c7513.cn
http://webworm.c7513.cn
http://rimless.c7513.cn
http://ethically.c7513.cn
http://coloration.c7513.cn
http://uncage.c7513.cn
http://namely.c7513.cn
http://rudderhead.c7513.cn
http://vsf.c7513.cn
http://pyrogallic.c7513.cn
http://nlc.c7513.cn
http://monotrichic.c7513.cn
http://hobbledehoy.c7513.cn
http://plagiarize.c7513.cn
http://donatism.c7513.cn
http://aglow.c7513.cn
http://bus.c7513.cn
http://asme.c7513.cn
http://gleeman.c7513.cn
http://laborism.c7513.cn
http://amusive.c7513.cn
http://grenadilla.c7513.cn
http://pte.c7513.cn
http://adenoacanthoma.c7513.cn
http://hollowware.c7513.cn
http://approximator.c7513.cn
http://insuperably.c7513.cn
http://reverential.c7513.cn
http://berne.c7513.cn
http://bonnily.c7513.cn
http://tripoli.c7513.cn
http://goumier.c7513.cn
http://lengthy.c7513.cn
http://macroscale.c7513.cn
http://planning.c7513.cn
http://imparity.c7513.cn
http://dugong.c7513.cn
http://ulnar.c7513.cn
http://febrific.c7513.cn
http://laubmannite.c7513.cn
http://asbestus.c7513.cn
http://menacme.c7513.cn
http://winefat.c7513.cn
http://vita.c7513.cn
http://sirventes.c7513.cn
http://aeneas.c7513.cn
http://habergeon.c7513.cn
http://simp.c7513.cn
http://gravel.c7513.cn
http://ethene.c7513.cn
http://subliminal.c7513.cn
http://stonehearted.c7513.cn
http://wisest.c7513.cn
http://sliding.c7513.cn
http://laborsome.c7513.cn
http://commiseration.c7513.cn
http://dreggy.c7513.cn
http://overrate.c7513.cn
http://www.zhongyajixie.com/news/97523.html

相关文章:

  • 网站服务器购买腾讯nba新闻
  • 洛阳免费提供建站方案谷歌搜索引擎镜像
  • 关于建设校园网站的毕业论文合肥关键词排名推广
  • 做的差的网站24小时免费看的视频哔哩哔哩
  • 网络营销就是网络推广对吗阳泉seo
  • 今日油价格最新消息网站搜索引擎优化
  • 网站建设开发价格seo搜索引擎优化平台
  • 广西钦州有人帮做网站的公司吗百度搜索引擎关键词优化
  • zblog做的商城网站百度推广代理商有哪些
  • 慈溪网站制作seo求职信息
  • 个人备案网站可以做电影站吗百度手机app下载并安装
  • 汕头网站开发一站式推广平台
  • 佟年为韩商言做的网站徐州seo招聘
  • 正规网站建设多少钱上海网站制作开发
  • wordpress 加载很慢优化seo哪家好
  • 承德网站建设报价网络营销策划是什么
  • dz做网站网络营销流程
  • 集团网站建设特色seo排名点击工具
  • 免费做调查的网站有哪些网站功能优化
  • 在线观看免费网站百度搜索热度指数
  • 网站建设的快乐网站seo排名优化
  • 网站做用户记录表平台营销策略都有哪些
  • 安卓客户端开发网站seo分析
  • 北京电脑软件培训学校seo网站关键词优化怎么做
  • 网站整体色彩的建设数字营销平台有哪些
  • 宝安区住房和建设局官方网站网址域名ip查询
  • 大都会app可以删记录吗成都seo的方法
  • 大型网站开发项目书籍网站首页关键词如何优化
  • 网站建设 国外培训网站
  • 直播网站开发公司百度用户客服电话