牛魔王的故事
#include<stdio.h>#define AMAX 6static char A[AMAX] = {'a','b','c','d','e','f'};void print(int len)//len为子集的大小,即元素的个数{int i,j,k;j=k=0;for(i=0;i<AMAX;i++){if(AMAX-i<len)break;for(j=0;j<len;j++){printf("%c ",A[i+j]);}printf("\n");}return;}int main(){int i;for(i=1;i<=AMAX;i++){