求全排列(无重复字母)
摘要:// 全排列.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <stdio.h> #include <string>int n = 0; void swap(char *a, char *b) { char m; m = *a; *a = *b; *b = m; } void perm(char list[], int k, int m) { int i; if (k == m) { printf("%s\n", li...
阅读全文
posted @
2012-09-12 17:49
TianMG
阅读(202)
推荐(0)