模擬撲克牌遊戲的洗牌

你們都很喜歡玩撲克牌,那麼若是面試官讓你用計算機模擬一個撲克遊戲的發牌或者洗牌,你會怎麼作呢? 代碼以下:web #include<stdio.h> #include<stdlib.h> #include<time.h> #include<string.h> #define POKER_NUM 52 //s:黑桃,h:紅桃,c:梅花,d:方塊 char poker_kinds[4] = {'s',
相關文章
相關標籤/搜索