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