/*
*
*
*/ #include<stdio.h>
#include<stdlib.h>
#include<time.h> int main()
{
int tmp; int in_hand[] = {}; char name[]; char tarot[][] = {
"[0]--->(The Fool, 0)",
"[1]--->(The Magician, I)",
"[2]--->(The High Priestess, II)",
"[3]--->(The Empress, III)",
"[4]--->(The Emperor, IV)",
"[5]--->(The Hierophant, or the Pope, V)",
"[6]--->(The Lovers, VI)",
"[7]--->(The Chariot, VII)",
"[8]--->(Strength, VIII)",
"[9]--->(The Hermit, IX)",
"[10]--->(The Wheel of Fortune, X)",
"[11]--->(Justice, XI)",
"[12]--->(The Hanged Man, XII)",
"[13]--->(Death, XIII)",
"[14]--->(Temperance, XIV)",
"[15]--->(The Devil, XV)",
"[16]--->(The Tower, XVI)",
"[17]--->(The Star, XVII)",
"[18]--->(The Moon, XVIII)",
"[19]--->(The Sun, XIX)",
"[20]--->(Judgement, XX)",
"[21]--->(The World, XXI)"
}; printf("TAROT.\n"); printf("Enter your name:"); gets(name); int left_cards = ; for(;left_cards > ;){ srand((int)time()); tmp = rand()%; if(!in_hand[tmp]){ in_hand[tmp] = ; if(left_cards > )
printf("%s \n", tarot[tmp]);
else
printf("YOUR CARD:%s \n", tarot[tmp]); left_cards --;
}
} printf("\n"); return ;
}

TAROT.
Enter your name:xkfx
[18]--->(The Moon, XVIII)
[1]--->(The Magician, I)
[4]--->(The Emperor, IV)
[7]--->(The Chariot, VII)
[10]--->(The Wheel of Fortune, X)
[14]--->(Temperance, XIV)
[17]--->(The Star, XVII)
[20]--->(Judgement, XX)
[3]--->(The Empress, III)
[6]--->(The Lovers, VI)
[9]--->(The Hermit, IX)
[12]--->(The Hanged Man, XII)
[16]--->(The Tower, XVI)
[19]--->(The Sun, XIX)
[8]--->(Strength, VIII)
[11]--->(Justice, XI)
[0]--->(The Fool, 0)
[13]--->(Death, XIII)
[2]--->(The High Priestess, II)
[5]--->(The Hierophant, or the Pope, V)
YOUR CARD:[15]--->(The Devil, XV)

TAROT.的更多相关文章

  1. logstash+elasticsearch+kibana管理日志(安装)

    logstash1.先安装jdk2.wget https://download.elastic.co/logstash/logstash/logstash-2.4.0.tar.gz tar -xzvf ...

  2. AOP杂谈

    1.什么是AOP? Spring 2大特性: IOC (Inverse of Control)和 AOP(Aspect Oriented Programming) PS: AOP:面向切面编程  设计 ...

  3. john and hydra using de-ice1.100

    配置IP  ipconfig etho 192.168.179.111 http://192.168.179.111/index2.php curl http://192.168.179.111/in ...

  4. BurpSuite中的安全测试插件推荐

    Burp Suite 是用于攻击web 应用程序的集成平台.它包含了许多工具,并为这些工具设计了许多接口,以促进加快攻击应用程序的过程.所有的工具都共享一个能处理并显示HTTP 消息,持久性,认证,代 ...

  5. SFC游戏列表(维基百科)

    SFC游戏列表 日文名 中文译名 英文版名 发行日期 发行商 スーパーマリオワールド 超级马里奥世界 Super Mario World 1990年11月21日 任天堂 エフゼロ F-Zero F-Z ...

  6. 2018CCPC吉林赛区(重现赛)部分题解

    The Fool 题目链接 Problem Description The Fool is numbered 0 – the number of unlimited potential –and th ...

随机推荐

  1. java 面试每日一题4

    题目:有1.2.3.4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?  1.程序分析:可填在百位.十位.个位的数字都是1.2.3.4.组成所有的排列后再去 掉不满足条件的排列. publ ...

  2. ACM题目————马拦过河卒

    题目描述 棋盘上A点有一个过河卒,需要走到目标B点.卒行走的规则:可以向下.或者向右.同时在棋盘上C点有一个对方的马,该马所在的点和所有跳跃一步可达的点称为对方马的控制点.因此称之为“马拦过河卒”. ...

  3. 5.toogleButton以及Switch

    Switch现在用得更多,比toogleButton界面美观,用户体验也要好. 点击事件: 用isChecked来判断点击的是哪一个,然后做相对应的回应.

  4. JDBC批量Insert深度优化(有事务)

    环境: MySQL 5.1 RedHat Linux AS 5 JavaSE 1.5 DbConnectionBroker 微型数据库连接池   测试的方案: 执行10万次Insert语句,使用不同方 ...

  5. Eclipse编译器及一些jdk + notepad

    Eclipse32位系统 http://pan.baidu.com/s/1i3eU8V7 Eclipse64位系统 http://pan.baidu.com/s/1i36ERCp jdk64位 htt ...

  6. 基于@AspectJ和schema的aop(一)

    在前面我们使用Pointcut和Advice描述切点和增强, 并使用Advisor整合两者描述切面.@AspectJ使用注解来描述切点和增强.两者使用的方式不同, 但是在本质上都是一样的. 我们还是用 ...

  7. Mac环境下用Java(Sikuli+Robot)实现页游自动化

    转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ Sikulix(以前叫Sikuli)在Mac电脑的环境配置步骤如下: 1.从官网上下载Sikuli ...

  8. Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) B

    Description You are given a table consisting of n rows and m columns. Numbers in each row form a per ...

  9. CXF集成spring做webservice接口

    一 . cxf 的jar包 1.cxf-2.3.3.jar 2.wsdl4j-1.6.2.jar 3.wss4j-1.5.11.jar 4.wstx-asl-3.2.0.jar 5.XmlSchema ...

  10. 【Java】Java创建String时,什么情况放进String Pool?

    对Java创建String是否放入String pool作代码性的试验. 参考的优秀文章 JAVA面试题解惑系列(二)——到底创建了几个String对象? public String(String o ...