实验了一下next_permutation

代码如下

 #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std; int main(int argc, char const *argv[])
{
char s[] = "";
int len = strlen(s);
do {
puts(s);
}
while(next_permutation(s,s+len)); getchar();
return ;
}

效果如下

最新文章

  1. PHP 将下划线命名 转换为 驼峰式命名
  2. 使用开源库MAGICODES.WECHAT.SDK进行微信公众号支付开发
  3. linux useradd 命令基本用法
  4. VBS基础篇 - class
  5. 深度优先算法DFS
  6. File类最基础知识
  7. [RxJS] Combination operators: concat, startWith
  8. service redis does not support chkconfig的解决办法
  9. 好久没来了,重出江湖,共享个python34+pyqt+pyserial串口工具源码
  10. Word直接发布新浪博客(以Wo…
  11. ProtoType原型和__Proto__原型链的详解
  12. 老K漫谈区块链的共识(3)——分布式系统和区块链共识
  13. c++ 面试题(操作系统篇)
  14. python爬虫-基础入门-爬取整个网站《1》
  15. Jersey RESTful WebService框架学习(七)文件上传
  16. php 会话控制(Session会话控制)
  17. PLSQL导入Excel文件预览不到数据行问题
  18. VVDocumenter规范注释生成器
  19. 【CF914G】Sum the Fibonacci 快速??变换模板
  20. ROR中h()方法和sanitize的区别及Html Filter

热门文章

  1. JQ中的问题
  2. [windows]设置使用空白密码进行远程登录
  3. jmeter中登录和提交收银出现的错误
  4. How to install Eclipse?
  5. SAP Cloud for Customer(C4C)的一些学习资料
  6. C++通讯录
  7. 用dfs遍历联通块(优化)
  8. CAD交互绘制批注(网页版)
  9. AEE加密解密
  10. 关于highchts X时间轴比设置时间相差好几个小时的解决