TAROT.
/*
*
*
*/ #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.的更多相关文章
- logstash+elasticsearch+kibana管理日志(安装)
logstash1.先安装jdk2.wget https://download.elastic.co/logstash/logstash/logstash-2.4.0.tar.gz tar -xzvf ...
- AOP杂谈
1.什么是AOP? Spring 2大特性: IOC (Inverse of Control)和 AOP(Aspect Oriented Programming) PS: AOP:面向切面编程 设计 ...
- 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 ...
- BurpSuite中的安全测试插件推荐
Burp Suite 是用于攻击web 应用程序的集成平台.它包含了许多工具,并为这些工具设计了许多接口,以促进加快攻击应用程序的过程.所有的工具都共享一个能处理并显示HTTP 消息,持久性,认证,代 ...
- SFC游戏列表(维基百科)
SFC游戏列表 日文名 中文译名 英文版名 发行日期 发行商 スーパーマリオワールド 超级马里奥世界 Super Mario World 1990年11月21日 任天堂 エフゼロ F-Zero F-Z ...
- 2018CCPC吉林赛区(重现赛)部分题解
The Fool 题目链接 Problem Description The Fool is numbered 0 – the number of unlimited potential –and th ...
随机推荐
- Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
这行代码: List<Cat> catList =session.createQuery("from Cat p where p.name.first_name=?") ...
- PHP中判断字符串是否含有中文
<?php /** * [1.测试一] * 当$str = '中文测试'; 时输出"全部是汉字";当$str = '中a文3测试'; 时输出"不全是汉字" ...
- Nginx使用手册目录
Nginx学习总结[第一篇]: Nginx简介 Nginx第二篇:Nginx部署及使用 Nginx第三篇:Nginx日志处理 Nginx第四篇:Nginx优化 Nginx第五篇:Nginx日常管理
- git 检出
1 git checkout branch 检出branch分支.要完成图8-1三个步骤,更新HEAD已指向新分支 以及用branch指向的树更新暂存区和工作区 2 git checkout 显示出工 ...
- yjfk 意见反馈
<div> <h1>我的第一个 JavaScript 程序</h1><p id="demo">这是一个段落</p>< ...
- 网络统计学与web前端开发基础技术
网络统计学与web前端开发基础技术 学习web前端开发基础技术(网页设计)需要了解:HTML.CSS.JavaScript三种语言.下面我们就来了解一下这三门技术在网页设计中的用途: HTML是网页内 ...
- SQL数据类型大全 《转自网络》
数据类型是数据的一种属性,表示数据所表示信息的类型.任何一种计算机语言都定义了自己的数据类型.当然,不同的程序语言都具有不同的特点,所定义的数据类型的种类和名称都或多或少有些不同.SQLServer ...
- Python模块学习
6. Modules If you quit from the Python interpreter and enter it again, the definitions you have made ...
- Android网络通信之WiFi Direct
使用Wi-Fi Direct技术可以让具备硬件支持的设备在没有中间接入点的情况下进行直接互联.Android 4.0(API版本14)及以后的系统都提供了对Wi-Fi Direct的API支持.通过对 ...
- TreeView 读取 xml 显示节点
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Tree2_xml.aspx.c ...