#include   <iostream>  
  #include   <vector>  
  #include   <string>  
  #include   <algorithm>  
  using   namespace   std;  
  void   main()  
  {  
  vector<string>StrArr;  
  StrArr.push_back("xyz");  
  StrArr.push_back("ok");  
  StrArr.push_back("wocow3");  
  if(find(StrArr.begin(),StrArr.end(),string("ok"))   !=   StrArr.end())  
  cout<<"finded"<<endl;  
  else  
  cout<<"not   find"<<endl;  
  }

相关文章:

  • 2021-11-05
  • 2021-07-10
  • 2021-08-16
  • 2022-12-23
  • 2021-11-21
  • 2021-07-30
  • 2022-02-07
猜你喜欢
  • 2021-09-05
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-12-27
相关资源
相似解决方案