随笔分类 - c++
摘要:#include <iostream>#include <vector>#include <algorithm>#include <string>#include <boost/lambda/lambda.hpp>#include <boost/lambda/bind.hpp>void test1(){ std::vector<int> vec(3); vec[0] = 12; vec[1] = ...
阅读全文
摘要:编译bjam:进入目录“boost_1_46_0\tools\build\v2\engine\src”,运行"build gcc"使用gcc进行编译,最后生成bjam.exe文件在“\bin.ntx86”目录下;将bjam.exe文件复制到boost_1_46_0目录下;运行“bjam install --prefix=c:\boost toolset=gcc” ,经过漫长的等待,最后在c:\boost目录下会生成boost头文件及lib库文件。
阅读全文
摘要:1、下载OpenCV源码,下载cmake并安装;2、建立"build"目录,并进入此目录;3、运行’cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\OpenCV‘,如果无误会生成Makefile文件;4、运行“make” 开始编译;等待一段时间会编译完成;5、运行“make install”,将相关文件放在C:\OpenCV目录下;6、编译example:进入目录 "\samples\c\example_cmake"目录下;配置环境变量“SET Open_DIR=C:\O
阅读全文
摘要:#include #include #include class Test { public: void test() { std::cout f1; // 无参数,无返回值 f1 = boost::bind(&Test::test, &t); f1(); //调用t.test(); f1 = boost::bind(&Test::te...
阅读全文

浙公网安备 33010602011771号