好久没看到c板的大牛出没了
哪个大牛,一点小问题,cpp标准马上翻出来哗哗哗的好专业,简直就是百科全书的神,可惜一点小问题的已经看不到来了。好怀恋五六年前还有大牛出没的年代
是啊,现在这个版冷清多了。 回复 1# shang2010
:mrgreen: 论坛已经不流行了。 {:yxh93:} 你们都没问什么像样的问题让大牛出来说什么呢…… 前几天一个同事说了句,“现在谁还用c开发啊” ruifengzhangyi 发表于 2016-12-27 16:03
前几天一个同事说了句,“现在谁还用c开发啊”
你这个同事有没有给你推荐过python啊?
本帖最后由 zhujiang73 于 2016-12-27 22:34 编辑
fender0107401 发表于 2016-12-27 21:31
你这个同事有没有给你推荐过python啊?
我也推荐 python, 如果有必要也可以用 boost.python 给 python 写 C++ 扩展模块。:mrgreen:{:yxh45:}
Synopsis
Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:
References and Pointers
Globally Registered Type Coercions
Automatic Cross-Module Type Conversions
Efficient Function Overloading
C++ to Python Exception Translation
Default Arguments
Keyword Arguments
Manipulating Python objects in C++
Exporting C++ Iterators as Python Iterators
Documentation Strings
The development of these features was funded in part by grants to Boost Consulting from the Lawrence Livermore National Laboratories and by the Computational Crystallography Initiative at Lawrence Berkeley National Laboratories.
http://www.boost.org/doc/libs/1_ ... doc/html/index.html
#include <boost/python.hpp>
using namespace boost::python;
BOOST_PYTHON_MODULE(hello)
{
class_<World>("World")
.def("greet", &World::greet)
.def("set", &World::set)
;
}
>>> import hello
>>> planet = hello.World()
>>> planet.set('howdy')
>>> planet.greet()
'howdy'
fender0107401 发表于 2016-12-27 21:31
你这个同事有没有给你推荐过python啊?
我也推荐 python 和 boost.python {:yxh45:}http://www.boost.org/doc/libs/1_62_0/libs/python/doc/html/index.html
Synopsis
Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:
References and Pointers
Globally Registered Type Coercions
Automatic Cross-Module Type Conversions
Efficient Function Overloading
C++ to Python Exception Translation
Default Arguments
Keyword Arguments
Manipulating Python objects in C++
Exporting C++ Iterators as Python Iterators
Documentation Strings
The development of these features was funded in part by grants to Boost Consulting from the Lawrence Livermore National Laboratories and by the Computational Crystallography Initiative at Lawrence Berkeley National Laboratories.
大牛需要用好的草来吸引 知易行难,把理论变成实践,现代程序开发最困难的还是写代码,:mrgreen:
页:
[1]