回 帖 发 新 帖 刷新版面

主题:定义函数shuffle洗扑克牌

怎样做到随机呢?怎样显示黑桃,红桃,方块,还有剩余的又是怎么表示出来的呢???求赐教啊!!!!

回复列表 (共3个回复)

沙发


//********** Specification of shuffle **********
void shuffle(int arr[],int n);
/* PreCondition:
arr: n elements of arr are all -1
PostCondition:
place 0~n-1 in arr randomly. All elements should be distinct each other.
*/

板凳


//********** Specification of shuffle **********
void shuffle(int arr[],int n);
/* PreCondition:
arr: n elements of arr are all -1
PostCondition:
place 0~n-1 in arr randomly. All elements should be distinct each other.
*/

3 楼

分析的不错------------------------------------------ using the same to build the body of the shoes.[url=http://www.freesaleaustralia.com/nike-free-run-3-c-7.html]Nike Free Run 3[/url],[url=http://www.freesaleaustralia.com/nike-free-50-c-10.html]Nike Free 5.0[/url] , [url=http://www.freesaleaustralia.com/nike-free-40-c-16.html]Nike Free 4.0[/url]

我来回复

您尚未登录,请登录后再回复。点此登录或注册