帮我看看下面程序不懂的地方

[复制链接]
查看11 | 回复0 | 2011-8-5 21:50:14 | 显示全部楼层 |阅读模式
#include
#include
#include
#include
int main()
{
        //S:黑桃H:红心C:草花D:方块
        char suits[] = {'S', 'H', 'C', 'D'};
        //等级
        char ranks[] = {'2','3','4','5','6','7','8','9','t','J','Q','K','A'};
        int n;//产生几张牌
        printf("你要必张牌:");
        scanf("%d", &n);
        srand(time(NULL));
//这个命令哪里用了?
        bool f[4][13] = {false};
        int i;
        for(i=0; i#include #include #include int main(){//S:黑桃H:红心C:草花D:方块char suits[] = {'S', 'H', 'C', 'D'};//等级char ranks[] = {'2','3','4','5','6','7','8','9','t','J','Q','K','A'};int n;//产生几张牌printf("你要必张牌:");scanf("%d", &n);srand(time(NULL));
//这个命令哪里用了?产生随机数前的播种,用...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行