user-0 提问: 您好，请看下我的代码不知道哪里出现了错误

回复:
user: user-0
content: #include <stdio.h> #include <time.h> #include <windows.h> #define MAX 100 int Shuffle(int order[], int Number); int Choice(int Complete[], int Number); int main()			//////////////产生随机牌序 { 	int Poker[MAX]; 	int Temporary, Search, Contrast, Determine_results; 	srand(time(NULL)); 	for (int i = 0; i < 50; i++){ 		for (Temporary = 1; Temporary < 55; Temporary++){ 			Poker[Temporary] = rand(time) % 54 + 1; 			for (Search = 1, Contrast = Temporary; Search < 54; Search++) 				if (Poker[Contrast] == Poker[Search] && Search != Contrast) 					Temporary--; 		}  		Determine_results = Shuffle(Poker, Temporary); 		if (i % 5 == 0) 			printf("\n"); 		switch (Determine_results){ 		case 1: printf("黑桃  A   "); break; case 2: printf("黑桃  2   "); break; case 3: printf("黑桃  3   "); break; case 4: printf("黑桃  4   "); break; case 5: printf("黑桃  5   "); break; 		case 6: printf("黑桃  6   "); break; case 7: printf("黑桃  7   "); break; case 8: printf("黑桃  8   "); break; case 9: printf("黑桃  9   "); break; case 10: printf("黑桃 10   "); break; 		case 11: printf("黑桃  J   "); break; case 12: printf("黑桃  Q   "); break; case 13: printf("黑桃  K   "); break; case 14:printf("红桃  A   "); break; case 15:printf("红桃  2   "); break; 		case 16:printf("红桃  3   "); break; case 17:printf("红桃  4   "); break; case 18:printf("红桃  5   "); break; case 19:printf("红桃  6   "); break; case 20:printf("红桃  7   "); break; 		case 21:printf("红桃  8   "); break; case 22:printf("红桃  9   "); break; case 23:printf("红桃 10   "); break; case 24:printf("红桃  J   "); break; case 25:printf("红桃  Q   "); break; 		case 26:printf("红桃  K   "); break; case 27:printf("方块  A   "); break; case 28:printf("方块  2   "); break; case 29:printf("方块  3   "); break; case 30:printf("方块  4   "); break; 		case 31:printf("方块  5   "); break; case 32:printf("方块  6   "); break; case 33:printf("方块  7   "); break; case 34:printf("方块  8   "); break; case 35:printf("方块  9   "); break; 		case 36:printf("方块 10   "); break; case 37:printf("方块  J   "); break; case 38:printf("方块  Q   "); break; case 39:printf("方块  K   "); break; case 40:printf("梅花  A   "); break; 		case 41:printf("梅花  2   "); break; case 42:printf("梅花  3   "); break; case 43:printf("梅花  4   "); break; case 44:printf("梅花  5   "); break; case 45:printf("梅花  6   "); break; 		case 46:printf("梅花  7   "); break; case 47:printf("梅花  8   "); break; case 48:printf("梅花  9   "); break; case 49:printf("梅花 10   "); break; case 50:printf("梅花  J   "); break; 		case 51:printf("梅花  Q   "); break; case 52:printf("梅花  K   "); break; case 53:printf("  王  5   "); break; case 54:printf("  王  6   "); break; 		} 	} 	printf("\n"); 	return 0; } int Shuffle(int order[], int Number)          //////////////////洗牌 { 	int array1[MAX]; 	int array2[MAX]; 	int Wash_the_cards[MAX]; 	int sheets_i, sheets_j, number, cards, Receive_i, Receive_j, i, j; 	int Temporary, Temporary1, Length_i, Length_j; 	srand(time(NULL)); 	for (number = 0; number < 3; number++){ 		for (Temporary = 1, Temporary1 = 28; Temporary < 28; Temporary++, Temporary1++){ 			array1[Temporary] = order[Temporary]; 			array2[Temporary] = order[Temporary1]; 			Receive_i = Receive_j = cards = 1; 			for (cards; cards < 55;){ 				sheets_i = rand(time) % 5 + 1; 				sheets_j = rand(time) % 5 + 1; 				Length_i = Receive_i + sheets_i; 				Length_j = Receive_j + sheets_j; 				if (Length_i >= 28) 					sheets_i = 28 - Receive_i; 				if (Length_j >= 28) 					sheets_j = 28 - Receive_j; 				for (i = 1, j = 1; i <= sheets_i && j <= sheets_j; i++, j++){ 					Wash_the_cards[cards++] = array2[Receive_j++]; 					Wash_the_cards[cards++] = array1[Receive_i++]; 				} 				for (i; i <= sheets_i; i++) 					Wash_the_cards[cards++] = array1[Receive_i++]; 				for (j; j <= sheets_j; j++) 					Wash_the_cards[cards++] = array2[Receive_j++]; 			} 		} 	} 	return Choice(Wash_the_cards, cards); } int Choice(int Complete[], int Number) { 	int The_ashing_card[MAX]; 	int Point, Poker_face, Confirm, Testing; 	srand(time(NULL)); 	Point = rand(time) % 54 + 1; 	Poker_face = Complete[Point]; 	if (Poker_face < 14){ 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} 	if (Poker_face > 13 && Poker_face < 27){ 		Poker_face -= 13; 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} 	if (Poker_face > 26 && Poker_face < 40){ 		Poker_face -= 26; 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} 	if (Poker_face > 39 && Poker_face < 53){ 		Poker_face -= 39; 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} 	if (Poker_face == 53){ 		Poker_face = 14; 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} 	if (Poker_face == 54){ 		Poker_face = 15; 		Testing = Poker_face + Point; 		if (Testing > 54) 			return Confirm = Complete[Testing - 54]; 		else 			return Confirm = Complete[Poker_face + Point]; 	} }

user: user-0
content: 怎么不能编辑帖子了

user: user-0
content: 引用 2 楼 liyoubaidu 的回复:能格式化一下吗，好难看啊    http://www.onvifb.com/ 怎么格式化，我不会呀

user: user-0
content: 高手们都在干吗。。。