#include <algorithm>
谁给我说说里面有些什么东西?
它们都有些什么用?
常用的有哪些?
如果要会用里面的东西应该看什么书或谁给我说说。
问题点数: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"这篇论文?急啊!




