高手帮忙看下 怎么输不出结果....
#include "stdio.h"#include "stdlib.h"
#include "time.h"
int shuffle(int wdeck[4][13]);/*洗牌*/
int deal(int wdeck[][13],char *wface[4],char *wsuit[13]);/*发牌*/
int main(void)
{char *wface[4]={"heart","diamond","club","spade"};
char *wsuit[13]={"Ace","Deuc","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Jack","Queen","King"};
int wdeck[4][13]={"0"};
srand(time(NULL));
shuffle(wdeck);
deal(wdeck,wface,wsuit);
return 0;}
int shuffle(int wdeck[4][13])
{int card,row,column;
int r;
for(card=1;card<=52;card++)
{ r=rand();
row=r%4;
r=rand();
column=r%13;
while (wdeck[row][column]!=0)
{ r=rand();
row=r%4;
r=rand();
column=r%13;
}
wdeck[row][column]=card;
}
}
int deal(int wdeck[][13],char *wface[4],char *wsuit[13])
{
int card,row,column;
for(card=1;card<=52;card++){
for(row=0;row<4;row++){
for(column=0;column<=12;column++)
printf("%cof%-5s%c",wsuit[row],wface[column],card%4==0?'\n':'\t');}
}
}