讲师洪安.pptVIP

  • 3
  • 0
  • 约1.32万字
  • 约 41页
  • 2018-08-13 发布于湖北
  • 举报
讲师洪安

find 範例 * #includeiostream #includelist #includealgorithm using namespace std; int main( ) { listint L; listint::iterator it; L.push_back(10) ; L.push_back(20); L.push_back(30); it = find(L.begin( ), L.end( ), 30); if ( it == L.end( )) cout data not found\n; else cout *it endl; return 0; } #includeiostream #includealgorithm using namespace std; int main( ) { int l[7] = { 1, 3, 2, 5, 1, 2, 1 }; int *it ; it = find(l[0], l[7], 5); if ( it == l+7) cout data not found\n ; else cout *it endl; retu

文档评论(0)

1亿VIP精品文档

相关文档