题目:http://zhidao.baidu.com/question/194835436.html
题2
有两副没有大小王的扑克,从中各抽一张,放回,判断是否相同(花色和点数相同)接着抽,抽52次,统计有多少对相同,进行以上实验1000次计算1000次中出现相同牌对数的平均数.
//头文件在之前文章中有写,
/*
BackPickFrom(box1);
void CardPlayer::BackPickFrom( CardBox& Box )
{
for( int i = 0 ; i < CardAmount ; ++i )
card[ i ] = Box.GetCard( rand() % Box.GetCardAmount() + 1 ) ;
}