CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
花落谁家,你作主! 盛大widget设计大赛英雄榜
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  专题开发/技术/项目 >  数据结构与算法

#include <algorithm>

楼主stupid007(我是白痴我怕谁)2002-05-23 17:02:57 在 专题开发/技术/项目 / 数据结构与算法 提问

谁给我说说里面有些什么东西?  
   
  它们都有些什么用?  
   
  常用的有哪些?  
   
  如果要会用里面的东西应该看什么书或谁给我说说。 问题点数:100、回复次数:6Top

1 楼IT_worker(IT工人)回复于 2002-05-23 17:43:49 得分 30

到MSDN上面敲stl然后点击定位。左边树上将会   展开”Standard   C++   Library   Reference“的目录结构,选择<algorithm>将会看到<algorithm>提供的所有算法。一个个看吧!    
  每个算法都有sample   program。下面给出一个最简单的用法:  
  #include<algorithm>  
  main()  
  {  
  int   array[4]={2,5,7,4};  
  std::sort(array,array+4);  
  //此后array为   2,4,5,7  
  }Top

2 楼one_add_one()我要睡觉:)回复于 2002-05-23 18:04:59 得分 30

<algorithm>  
  adjacent_find   ·   binary_search   ·   copy   ·   copy_backward   ·   count   ·   count_if   ·   equal   ·   equal_range   ·   fill   ·   fill_n   ·   find   ·   find_end   ·   find_first_of   ·   find_if   ·   for_each   ·   generate   ·   generate_n   ·   includes   ·   inplace_merge   ·   iter_swap   ·   lexicographical_compare   ·   lower_bound   ·   make_heap   ·   max   ·   max_element   ·   merge   ·   min   ·   min_element   ·   mismatch   ·   next_permutation   ·   nth_element   ·   partial_sort   ·   partial_sort_copy   ·   partition   ·   pop_heap   ·   prev_permutation   ·   push_heap   ·   random_shuffle   ·   remove   ·   remove_copy   ·   remove_copy_if   ·   remove_if   ·   replace   ·   replace_copy   ·   replace_copy_if   ·   replace_if   ·   reverse   ·   reverse_copy   ·   rotate   ·   rotate_copy   ·   search   ·   search_n   ·   ;   set_difference   ·   set_intersection   ·   set_symmetric_difference   ·   set_union   ·   sort   ·   sort_heap   ·   stable_partition   ·   stable_sort   ·   swap   ·   swap_ranges   ·   transform   ·   unique   ·   unique_copy   ·   upper_bound    
  Top

3 楼leasun(leasun)回复于 2002-05-23 18:29:47 得分 10

这是C++标准库中的泛型算法,详细内容Stan的Essential   C++和C++   Primer都有附录说明Top

4 楼starfish(海星)回复于 2002-05-23 19:51:05 得分 10

你可以看看  
  http://www.sgi.com/tech/stl/table_of_contents.html  
  哪里有STL详细的文档Top

5 楼Januarius_(努力学习J2EE中)回复于 2002-05-23 21:09:20 得分 10

它包含了c++的泛型算法,在C++   primer的附录里有详细介绍Top

6 楼superzjx2000(承桴浮于海)回复于 2002-05-26 06:56:15 得分 10

C++   primer  
  the   c++   program   languageTop

相关问题

  • Bresenham's algorithm?
  • what is "blowfish encryption algorithm"?
  • LDSA -- Library of Data Structure and Algorithm
  • Describe a O(nlgn)-time algorithm
  • least-squares-errror searching algorithm是什么意思?
  • #include...
  • include ?
  • STL algorithm 的问题,请大家帮忙看看
  • 哪位有"Practical Fast 1-D DCT algorithm with 11 multiplications"这篇论文?急啊!
  • 哪位有"Practical Fast 1-D DCT algorithm with 11 multiplications"这篇论文?急啊!

关键词

  • c++
  • search
  • copy
  • heap
  • sort
  • swap
  • remove
  • replace
  • find
  • array

得分解答快速导航

  • 帖主:stupid007
  • IT_worker
  • one_add_one
  • leasun
  • starfish
  • Januarius_
  • superzjx2000

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo