摘要: #include <stdio.h>#include <stdlib.h>#include <memory.h>#define MAX 6void DFS(int *output, int val, int pos, bool *isSelected, int &k){int i = 0;if ( isSelected[val] ){return;}output[pos] = val;isSelected[val] = true;if ( pos == (MAX - 2) ){for (i = 0; i < MAX - 1; i++){prin 阅读全文
posted @ 2012-03-08 16:07 Never To Say Impossible 阅读(177) 评论(0) 推荐(0) 编辑