c++标准程序库《》侯杰


STL,C++三大编程技术之一(面向对象编程;泛型编程,即STL;com编程)。凡是学C++如不知道STL,那你的C++之路还有很长。侯杰翻译的这本书,能够让你熟练的掌握STL的用法。
资源截图
代码片段和文件信息
/* The following code example is taken from the book
 * “The C++ Standard Library - A Tutorial and Reference“
 * by Nicolai M. Josuttis Addison-Wesley 1999
 *
 * (C) Copyright Nicolai M. Josuttis 1999.
 * Permission to copy use modify sell and distribute this software
 * is granted provided this copyright notice appears in all copies.
 * This software is provided “as is“ without express or implied
 * warranty and with no claim as to its suitability for any purpose.
 */
#include “algostuff.hpp“
using namespace std;

int main()
{
    vector coll;

    INSERT_ELEMENTS(coll19);
    PRINT_ELEMENTS(coll);

    // process sum of elements
    cout << “sum: “
         << accumulate (coll.begin() coll.end()    // range
                        0)                           // initial value
         << endl;

    // process sum of elements less 100
    cout << “sum: “
         << accumulate (coll.begin() coll.end()    // range
                        -100)                        // initial value
         << endl;

    // process product of elements
    cout << “product: “
         << accumulate (coll.begin() coll.end()    // range
                        1                           // initial value
                        multiplies())           // operation
         << endl;

    // process product of elements (use 0 as initial value)
    cout << “product: “
         << accumulate (coll.begin() coll.end()    // range
                        0                           // initial value
                        multiplies())           // operation
         << endl;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    4001571  2002-11-06 21:44  C++标准程序库自修教程与参考手册c++标准程序库.pdf

     文件       1658  2008-01-06 18:02  examplesalgoaccu1.cpp

     文件       1386  2008-01-06 18:02  examplesalgoadjdiff1.cpp

     文件       1662  2008-01-06 18:01  examplesalgoadjfind1.cpp

     文件       1519  2008-01-06 18:01  examplesalgoalgostuff.hpp

     文件       1565  2008-01-06 18:02  examplesalgoounds1.cpp

     文件       1078  2008-01-06 18:02  examplesalgosearch1.cpp

     文件       1550  2008-01-06 18:01  examplesalgocopy1.cpp

     文件       1381  2008-01-06 18:01  examplesalgocopy2.cpp

     文件        820  2008-01-06 18:01  examplesalgocopy3.cpp

     文件       1432  2008-01-06 18:01  examplesalgocount1.cpp

     文件       1115  2008-01-06 18:02  examplesalgoeqrange1.cpp

     文件       1522  2008-01-06 18:01  examplesalgoequal1.cpp

     文件       1814  2008-01-06 18:01  examplesalgofill1.cpp

     文件       1546  2008-01-06 18:01  examplesalgofind1.cpp

     文件       1303  2008-01-06 18:01  examplesalgofind2.cpp

     文件       1515  2008-01-06 18:01  examplesalgofindend1.cpp

     文件       1664  2008-01-06 18:01  examplesalgofindof1.cpp

     文件        874  2008-01-06 18:01  examplesalgoforeach1.cpp

     文件       1391  2008-01-06 18:01  examplesalgoforeach2.cpp

     文件       1426  2008-01-06 18:01  examplesalgoforeach3.cpp

     文件       1064  2008-01-06 18:01  examplesalgogenerate.cpp

     文件       1404  2008-01-06 18:01  examplesalgoheap1.cpp

     文件       1037  2008-01-06 18:02  examplesalgoimerge1.cpp

     文件       1151  2008-01-06 18:02  examplesalgoincludes.cpp

     文件       1867  2008-01-06 18:02  examplesalgoinner1.cpp

     文件       1760  2008-01-06 18:01  examplesalgolexico1.cpp

     文件        570  2008-01-06 18:01  examplesalgoMakefile

     文件       1007  2008-01-06 18:02  examplesalgomerge1.cpp

     文件       1381  2008-01-06 18:01  examplesalgominmax1.cpp

............此处省略211个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)