03 2013 档案

VS2010下安装boost库
摘要:1.去www.boost.org下载最新的boost,我下载了boost_1_46_1.7z2.(我放在D:/cpp目录下)解压到当前文件夹3.打开VS2010->VS TOOLS->VS命令提示4.CD D:/cpp/boost_1_46_15.输入bootstrap,便生成bjam.exe文件6.输入bjam toolset=msvc-10.0 variant=debug,release threading=multi link=static,便生成boost库(时间挺长20分钟以上)7.修改VS2010的参数 在项目的组合显示那找到属性页,打开属性页,选择配置属性,选择VC+ 阅读全文

posted @ 2013-03-11 17:29 jxgxy 阅读(21523) 评论(0) 推荐(2)

c++ 全排列算法
摘要:#include "stdafx.h"#include <string>#include <algorithm>#include <iostream>void func(const char *str_in){ std::string str(str_in); std::sort(str.begin(),str.end()); do { std::cout<<str<<std::endl; }while (std::next_permutation(str.begin(),str.end()));}int _tma 阅读全文

posted @ 2013-03-07 11:00 jxgxy 阅读(945) 评论(0) 推荐(0)

导航