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 阅读(938) 评论(0) 推荐(0) 编辑