摘要: #include#include#includevoid swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp;}int myrand(int left, int right){ return (left+rand(... 阅读全文
posted @ 2014-08-09 19:33 米其林轮船 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一.全排列无重复字符#include#includechar buf[1024];void func(int index);void swap(int index1,int index2);int main(){ memset(buf,0,sizeof(buf)); sprintf(bu... 阅读全文
posted @ 2014-08-09 11:25 米其林轮船 阅读(208) 评论(0) 推荐(0) 编辑