RPG——Harry Potter

  博主最近迷上了《Harry Potter》

So 我制作了一款RPG对话模拟游戏,

目前主线以进行到了分院以后:

有兴趣的小伙伴可以看看,能点个关注就更好了\(>_<)/

  以下是程序的准备

  

#include<bits/stdc++.h>
#include<conio.h>
#include<windows.h>
using namespace std;
struct one{
string name;
int s;
int age;
//金钱
int money1,money2,money3;//金加隆,银西可,铜纳特
//魔杖,魔法
int magic;
int magican[100];
int magnum;
//外观
string _1;//发色
string _2;//皮肤
string _3;//眼睛
string _4;//衣服
string w;
//物品
int thing[100];
int thnum;
};
string se[2]={"先生","女士"}; //称谓
string adj[2]={"帅气","美丽"};//adj
string mag[8]={"凤凰尾羽紫衫木魔杖","独角兽毛山楂木魔杖","雷鸟羽毛雪杉木魔杖","火龙神经硬木魔杖","独角兽毛雪松木魔杖","凤凰尾羽柳木魔杖","赤木凤凰尾羽魔杖","铁木夜骑尾毛魔杖"};
string gic[100]={"除你武器","飞来","障碍重重","护神护卫","门牙塞大棒","钻心剜骨","阿瓦达索命","魂魄出窍","神锋无影"};//魔法
string thing[4]={"光轮2001","魔法石","白鲜香精"}; //物品
int magn=8; //魔杖种类数量
string drink[2]={"黄油啤酒","火焰威士忌"};//饮料种类
int dn=2;//饮料种类数量
int dw[2]={5,10};//饮料价格
string school[6]={"无","格兰芬多","赫奇帕奇","拉文克劳","斯莱特林","阿兹卡班"};//五大学院(doge)
int sflag;
int life;
one player;//玩家
//转场
void jump(){
for(int i=0;i<3;i++){
system("cls");
cout<<"..."<<endl;
Sleep(800);
system("cls");
cout<<"...."<<endl;
Sleep(800);
}
}
//随机函数
int come(int a,int b){
srand((int)time(0));
return (rand()%(b-a+1))+a;
}
//歇停
void change(){
getch();
system("cls");
}

Harry Potter RPG_1的更多相关文章

  1. 2015年第6本(英文第5本):Harry Potter 1 哈利波特与魔法石

    书名: Harry Potter 1 – Harry Potter and the Sorcerer’s Stone 作者:J.K. Rowling 单词数:7.8万 不重复单词数:6000(我怎么感 ...

  2. HDU 4771 Stealing Harry Potter's Precious

    Stealing Harry Potter's Precious Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 ...

  3. Interview-Harry Potter walk through matrix.

    假设你是harry potter,在grid的左上角,你现在要走到右下角,grid中有正数也有负数,遇到正数表示你的strength增加那么多,遇到负数表示strength减少那么多,在任何时刻如果你 ...

  4. Harry Potter

    Names appearing in "Harry Potter" 1.Harry Potter ①Harry is from Henry. ②Harry is related t ...

  5. hdu 4771 Stealing Harry Potter&#39;s Precious(bfs)

    题目链接:hdu 4771 Stealing Harry Potter's Precious 题目大意:在一个N*M的银行里,贼的位置在'@',如今给出n个宝物的位置.如今贼要将全部的宝物拿到手.问最 ...

  6. hdu4771 Stealing Harry Potter&#39;s Precious

    注意--你可能会爆内存-- 假设一个直接爆搜索词-- 队列存储器元件被减少到-- #include<iostream> #include<map> #include<st ...

  7. Harry Potter and the Prisoner of Azkaban

    称号:Harry Potter and the Prisoner of Azkaban 作者:J.K. Rowling 篇幅: 448页 蓝思值:880L 用时:    11天 工具:  有道词典 [ ...

  8. HDU 3988 Harry Potter and the Hide Story(数论-整数和素数)

    Harry Potter and the Hide Story Problem Description iSea is tired of writing the story of Harry Pott ...

  9. HDU3988-Harry Potter and the Hide Story(数论-质因数分解)

    Harry Potter and the Hide Story Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 ...

  10. Harry Potter and J.K.Rowling(半平面交+圆和矩形交)

    Harry Potter and J.K.Rowling http://acm.hdu.edu.cn/showproblem.php?pid=3982 Time Limit: 2000/1000 MS ...

随机推荐

  1. DOS系统中EXE程序加载过程

    1.在内存区中寻找一段容量足够的空闲内存区. 2.这段内存区的前256字节中,创建一个称为程序段前缀(PSP)的数据区. 3.这段内存区256字节之后,将程序装入,程序的地址被设为SA+10H : 0 ...

  2. 前端学习C语言 - 函数和关键字

    函数和关键字 本篇主要介绍:自定义函数.宏函数.字符串处理函数和关键字. 自定义函数 基本用法 实现一个 add() 函数.请看示例: #include <stdio.h> // 自定义函 ...

  3. 【论文阅读】Learning Deep Features for Discriminative Localization

    这个是周博磊16年的文章.文章通过实验证明,即使没有位置标注,CNN仍是可以得到一些位置信息,(文章中的显著性图) CNN提取的feature含有位置信息,尽管我们在训练的时候并没有标记位置信息: 这 ...

  4. FPGA加速技术:如何提高系统的可编程性和灵活性

    目录 <23. FPGA加速技术:如何提高系统的可编程性和灵活性> 一.引言 随着人工智能.物联网等新技术的快速发展,对计算资源和处理能力的需求不断增加.为了加速计算流程和提高系统的性能, ...

  5. React后台管理系统 03全局样式scss

    安装scss样式依赖,使用命令 npm i --save-dev sass  --dev 会将依赖安装在devDependencies=>开发环境的依赖. 我们在src目录下的assets下创建 ...

  6. 这问题巧了,SpringMVC 不同参数处理机制引发的思考

    这个问题非常有趣,不是SpringMVC 的问题,是实际开发中混合使用了两种请求方式暴露出来的. 问题场景 功能模块中,提供两个 Http 服务.一个是列表查询(application/json 请求 ...

  7. React组件三大属性state,props,refs

    1. React组件定义 1.1 函数组件(Function Components) 函数组件是一种简单的定义组件的方式,通过一个JavaScript函数来定义组件.函数接收一个props对象作为参数 ...

  8. asp.net core如何获取客户端IP地址

    客户端直接访问服务器 直接通过HttpContext.Connection.RemoteIpAddress获取客户端Ip [HttpGet] [Route("GetClientIP" ...

  9. 【调制解调】AM 调幅

    说明 学习数字信号处理算法时整理的学习笔记.同系列文章目录可见 <DSP 学习之路>目录.本篇介绍 AM 调幅信号的调制与解调,内附全套 MATLAB 代码. 目录 说明 1. AM 调制 ...

  10. HTB靶场之Sandworm

    准备: 攻击机:虚拟机kali. 靶机:Sandworm,htb网站:https://www.hackthebox.com/,靶机地址:https://app.hackthebox.com/machi ...