资源简介

Boost.Python文档中文翻译。译者:金庆,2008.6.16。请关注:Boost文档翻译项目 ( http://groups.google.com/group/boost_doc_translation?hl=zh-CN )欢迎访问:金庆的专栏 ( http://blog.csdn.net/jq0123 )

资源截图

代码片段和文件信息

// Copyright Ralf W. Grosse-Kunstleve 2002-2004. Distributed under the Boost
// Software License Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include 
#include 
#include 

namespace { // Avoid cluttering the global namespace.

  // A couple of simple C++ functions that we want to expose to Python.
  std::string greet() { return “hello world“; }
  int square(int number) { return number * number; }
}

namespace python = boost::python;

// Python requires an exported function called init in every
// extension module. This is where we build the module contents.
BOOST_PYTHON_MODULE(getting_started1)
{
    // Add regular functions to the module.
    python::def(“greet“ greet);
    python::def(“square“ square);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-06-16 09:04  Boost.Python中文文档\
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\
     文件        1033  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\boost.css
     文件        6308  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\boost.png
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\doc\
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\doc\html\
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\doc\html\images\
     文件         374  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\blank.png
     文件        1250  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\caution.png
     文件       17454  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\draft.png
     文件         358  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\home.png
     文件         722  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\important.png
     文件         336  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\next.png
     文件        1110  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\next_disabled.png
     文件         490  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\note.png
     文件         334  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\prev.png
     文件        1109  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\prev_disabled.png
     文件         449  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\tip.png
     文件         318  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\toc-blank.png
     文件         259  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\toc-minus.png
     文件         264  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\toc-plus.png
     文件         370  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\up.png
     文件        1115  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\up_disabled.png
     文件        1241  2008-05-26 13:24  Boost.Python中文文档\boost_1_35_0\doc\html\images\warning.png
     文件         795  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\index.htm
     文件        5559  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\index.html
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\libs\
     文件         478  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\libs\index.html
     文件       40444  2008-05-23 09:07  Boost.Python中文文档\boost_1_35_0\libs\libraries.htm
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\libs\python\
     目录           0  2008-06-16 09:03  Boost.Python中文文档\boost_1_35_0\libs\python\build\
............此处省略492个文件信息

评论

共有 条评论