/*
*
*
*/ #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. api(接口)文档管理工具

    api(接口)文档管理工具 欢迎光临:博之阅API管理平台  ,做为一个app开发者,还没有用到api管理工具,你就OUT了 点击进入:程序员精华博客大全  

  2. 12、Jsp加强/自定义标签/JavaBean

    1 Jsp加强回顾 Jsp加强 1)Jsp的9大内置对象 request       HttpServletRequet response     HttpServletResponse config ...

  3. iOS-网址集

    0. 在线工具 http://tool.lu 1. iOS学习笔记汇总链接 https://blog.6ag.cn/533.html 2.iOS开发内购全套图文教程http://mp.weixin.q ...

  4. 《QT Creator快速入门》

    ui中的类,这样使用无法通过调试: Ui::Dialog ui(&w); w.show(); 而需要改成: Ui::Dialog ui; ui.setupUi(&w); w.show( ...

  5. Android studio中设置颜色的状态选择器

    <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andro ...

  6. Serializable接口使用纪实

    这两天依领导要求使用sonar工具测试了一下项目代码,其中有一个问题是 而这个类的结构大概是这样的: public class Demo<T> implements Serializabl ...

  7. [C++]C++标准里 string和wstring

    typedef basic_string<char> string; typedef basic_string<wchar_t> wstring; 前者string是常用类型, ...

  8. 文本去重之MinHash算法

    1.概述     跟SimHash一样,MinHash也是LSH的一种,可以用来快速估算两个集合的相似度.MinHash由Andrei Broder提出,最初用于在搜索引擎中检测重复网页.它也可以应用 ...

  9. c#之线程随机

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...

  10. js格式化日期 年月日

    /**                     * 格式化日期                     * @param value                     * @param row  ...