<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      非可變序列函數

      #include <bits/stdc++.h>
      using namespace std;
      bool greater3(int value){
          return value>3;
      }
      int main(){
          vector<int> v;
          int arr[] = {1,2,3,4,5};
          vector<int> test(arr,arr+sizeof(arr)/sizeof(int));
          v.insert(v.begin(),test.begin(),test.end());
          int num = count(v.begin(),v.end(),2);
          cout<<"等于2的數量有:"<<num<<endl;
          num = count_if(v.begin(),v.end(),greater3);
          cout<<"大于3的數量有:"<<num<<endl;
          int arr2[] = {3,4};
          vector<int> test2(arr2,arr2+sizeof(arr2)/sizeof(int));
          vector<int>::iterator si = search(v.begin(),v.end(),test2.begin(),test2.end());
          if(si!=v.end()){
              cout<<"{3,4},第一個起始位置為:"<<si-v.begin()<<",第一個元素:"<<*si<<endl;
          }
          vector<int>::iterator si2 = search_n(v.begin(),v.end(),1,4);
          if(si2!=v.end()){
              cout<<"連續1個4的第一個位置為:"<<si2-v.begin()<<endl;
          }
          vector<int>::iterator fi = find(v.begin(),v.end(),2);
          if(fi!=v.end()){
              cout<<"2的第一個位置為:"<<fi-v.begin()<<endl;
          }
          vector<int>::iterator fi2 = find_if(v.begin(),v.end(),greater3);
          if(fi2!=v.end()){
              cout<<"大于3的第一個位置為:"<<fi2-v.begin()<<",值為:"<<*fi2<<endl;
          }
          vector<int>::iterator min_ = min_element(v.begin(),v.end());
          vector<int>::iterator max_ = max_element(v.begin(),v.end());
          cout<<"最大值="<<*max_<<",最小值="<<*min_<<endl;
          return 0;
      }

       

      posted @ 2025-03-01 09:50  王一行(小號)  閱讀(6)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲人成电影网站 久久影视| 亚洲国产区男人本色| 国产成人无码AV片在线观看不卡| 加勒比久久综合网天天| аⅴ天堂国产最新版在线中文| 少妇av一区二区三区无码| 岐山县| 亚洲女人的天堂在线观看| 精品国产中文字幕在线| 国产AV福利第一精品| 久久国产精品不只是精品| 亚洲亚洲人成综合网络| 国产激情无码一区二区三区| 日本新janpanese乱熟| 亚欧成人精品一区二区乱| 亚洲人妻精品一区二区| 免费现黄频在线观看国产| 精品日本乱一区二区三区| 国产福利姬喷水福利在线观看| 日韩秘 无码一区二区三区| 2021亚洲爆乳无码专区| 精品一区二区成人码动漫| 亚洲 制服 丝袜 无码| 精品无码久久久久国产| 亚洲乱码国产乱码精品精| 国内精品久久久久影院日本| 亚洲国产天堂久久综合网| 一区二区三区激情都市| 亚洲av日韩在线资源| 国产喷水1区2区3区咪咪爱AV| 国产电影无码午夜在线播放| 亚洲精品无码日韩国产不卡av| 久久99精品久久久大学生| 日韩精品永久免费播放平台| 亚洲精品一区二区三区不| 中国老熟妇自拍hd发布| 久热久热中文字幕综合激情| 国产中文字幕精品免费| 国内精品伊人久久久久影院对白 | 特黄特色的大片观看免费视频| 岛国最新亚洲伦理成人|