/*
*
*
*/ #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. Python字符界面函数库

    curses ncurses prettytable from prettytable import PrettyTable row = PrettyTable() row.field_names = ...

  2. RMAN笔记小结

    首先感谢junsansi和leshani两位大师的文笔:我可是好好看了很多遍:这两位哦:我跟你们说:对rman的解说那是相当精彩:文章形如流水,通俗易懂:内容那是入木三分...;好了我也不多说了,反正 ...

  3. C/C++的一些备忘

    今天使用source insight阅读videoserver源码,有一些符号ctrl+左键点击显示找不到,先是rebuild工程和同步,没有效果,然后Options->Preferences- ...

  4. [thml]HTML select标签 获取选中的option的value及Text内容

    很简单的select标签: <select id="hello" onchange="getContent(this.value,this.options[this ...

  5. layer

    一款实用的web提示框架!下面是实用这款框架的实例 html代码 <p class='layer_notice'>我们是否是好惹的</p> <input type=&qu ...

  6. 杭电1009-FatMouse' Trade

    FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) ...

  7. oracle中的自动增长

    create table test( id int not null primary key, name varchar2(20), sex int) ; create sequence t -> ...

  8. script中的if

    function isOK() { var isTrue = false; var value = $("#myTest1").val(); // if (value && ...

  9. win10 + VS2015 + EF6 + MySQL

    前置配置 在下面的网址去安装最新版的 (Connector/Net http://dev.mysql.com/downloads/connector/net/#downloads) 然后安装 MySQ ...

  10. 华东交通大学2016年ACM“双基”程序设计竞赛 1005

    Problem Description 最近侯ry感觉自己在数学方面的造诣不忍直视:他发现他的学习速率呈一个指数函数递增,疯狂的陷入学习的泥潭,无法自拔:他的队友发现了他的学习速率y=e^(b*lna ...