Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
struct_cym
游戏编写
提交
2bdb8db8
游
游戏编写
项目概览
struct_cym
/
游戏编写
通知
5
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
游
游戏编写
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2bdb8db8
编写于
9月 10, 2021
作者:
struct_cym
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ao.cpp
上级
70165b32
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
74 addition
and
68 deletion
+74
-68
ao.cpp
ao.cpp
+74
-68
未找到文件。
ao.cpp
浏览文件 @
2bdb8db8
//���ˣ���ʼ��
/*
关于所有函数的解释
main12:主界面
main: 一开始进入的主界面
board: 一些选项
其它的可以百度一下,都是英文(有些是拼音)
*/
#include <iostream>
#include <cstdio>
...
...
@@ -9,23 +15,23 @@
#include <windows.h>
using
namespace
std
;
int
main12
();
int
main12
();
void
start
();
void
board
();
void
maps
();
void
bag
();
//bug
void
bag
();
//bug
可以先看一下,不知道出了什么问题
void
box
();
void
equip
();
//
װ�� δ���
void
skill_board
();
//
���ܰ� δ���
void
lingdong
();
//
��
void
zhanchang
();
//
��
void
shenming
();
//
��
void
huo
();
//
��
void
bin
();
//
��
void
jin
();
//
��
void
shu
();
//
��
void
lu
();
//
��
void
equip_bag
();
//
��
void
equip
();
//
装备 未完成
void
skill_board
();
//
技能板 未完成
void
lingdong
();
//
未完成
void
zhanchang
();
//
未完成
void
shenming
();
//
未完成
void
huo
();
//
未完成
void
bin
();
//
未完成
void
jin
();
//
未完成
void
shu
();
//
未完成
void
lu
();
//
未完成
void
equip_bag
();
//
未完成
const
int
N
=
1e3
+
10
;
...
...
@@ -60,8 +66,8 @@ int main(){
return
0
;
}
start
();
cout
<<
endl
<<
"
����������Ҫ������
"
<<
endl
;
cout
<<
"1.
�� 2.ľ 3.ˮ 4.�� 5.��
"
;
cout
<<
endl
<<
"
请输入你所要的属性
"
<<
endl
;
cout
<<
"1.
金 2.木 3.水 4.火 5.土
"
;
cin
>>
attribute
;
board
();
cin
>>
option
;
...
...
@@ -92,7 +98,7 @@ void start(){
cout
<<
endl
;
cout
<<
"Please wait a moment"
<<
endl
;
Sleep
(
1000
);
cout
<<
"
�������������
"
<<
endl
;
cout
<<
"
请输入你的名字
"
<<
endl
;
cin
>>
name
;
}
...
...
@@ -111,31 +117,31 @@ void pretreatment(){
void
board
(){
cout
<<
endl
<<
endl
<<
endl
;
cout
<<
"
����
:"
<<
name
<<
endl
;
cout
<<
"
����"
;
//�ݲ�����
cout
<<
"
�ȼ�
:"
<<
grade
<<
endl
;
cout
<<
"
Ѫ��
:"
<<
blood
[
grade
]
<<
endl
;
cout
<<
"
����
:"
;
cout
<<
"
姓名
:"
<<
name
<<
endl
;
cout
<<
"
境界"
;
//暂不开放
cout
<<
"
等级
:"
<<
grade
<<
endl
;
cout
<<
"
血量
:"
<<
blood
[
grade
]
<<
endl
;
cout
<<
"
属性
:"
;
if
(
attribute
==
1
){
cout
<<
"
��
"
<<
endl
;
cout
<<
"
金
"
<<
endl
;
}
else
if
(
attribute
==
2
){
cout
<<
"
ľ
"
<<
endl
;
cout
<<
"
木
"
<<
endl
;
}
else
if
(
attribute
==
3
){
cout
<<
"
ˮ
"
<<
endl
;
cout
<<
"
水
"
<<
endl
;
}
else
if
(
attribute
==
4
){
cout
<<
"
��
"
<<
endl
;
cout
<<
"
火
"
<<
endl
;
}
else
{
cout
<<
"
��
"
<<
endl
;
cout
<<
"
土
"
<<
endl
;
}
cout
<<
"
����
:"
<<
attack
<<
endl
;
cout
<<
"
����
:"
<<
defense
<<
endl
;
cout
<<
"
攻击
:"
<<
attack
<<
endl
;
cout
<<
"
防御
:"
<<
defense
<<
endl
;
Sleep
(
1000
);
cout
<<
"1.
��ͼ "
<<
"2.���� "
<<
"3.������ "
<<
"4.װ�� "
<<
"5.���ܰ�
"
<<
endl
;
cout
<<
"1.
地图 "
<<
"2.背包 "
<<
"3.精灵箱 "
<<
"4.装备 "
<<
"5.技能板
"
<<
endl
;
}
void
maps
(){
cout
<<
"1.
�鶴 "
<<
"2.ս�� "
<<
"3.����֮�� "
<<
"4.����֮�� "
<<
"5.�֮��
"
<<
endl
;
cout
<<
"6.
����ɽ "
<<
"7.��ħ���� "
<<
"8.����Ŭ˹�Ĵ�½ɳĮ "
<<
"9.�˳�
"
;
cout
<<
"1.
灵洞 "
<<
"2.战场 "
<<
"3.生命之树 "
<<
"4.流火之地 "
<<
"5.深海之地
"
<<
endl
;
cout
<<
"6.
铁金山 "
<<
"7.恶魔树林 "
<<
"8.阿比努斯的大陆沙漠 "
<<
"9.退出
"
;
cin
>>
option
;
if
(
option
==
1
){
lingdong
();
...
...
@@ -176,10 +182,10 @@ void bag(){ //bug
cout
<<
endl
;
}
cout
<<
endl
;
cout
<<
"1.
����
"
;
cout
<<
"1.
丢弃
"
;
cin
>>
option
;
if
(
option
==
1
){
cout
<<
"
�����붪�������
"
;
cout
<<
"
请输入丢弃的序号
"
;
cin
>>
option
;
for
(
int
i
=
0
;
i
<
100
;
i
++
){
if
(
option
==
bags
[
i
].
cnn
){
...
...
@@ -187,7 +193,7 @@ void bag(){ //bug
for
(
int
j
=
i
+
1
;
j
<
100
;
j
++
){
bags
[
j
].
cnn
--
;
}
cout
<<
"
�����ɹ�
"
;
cout
<<
"
丢弃成功
"
;
return
;
}
}
...
...
@@ -204,11 +210,11 @@ void box(){
cout
<<
endl
;
}
cout
<<
endl
;
cout
<<
"1.
����
"
;
cout
<<
"1.
丢弃
"
;
cin
>>
option
;
if
(
option
==
1
){
Sleep
(
1000
);
cout
<<
"
�����붪�������
"
;
cout
<<
"
请输入丢弃的序号
"
;
cin
>>
option
;
for
(
int
i
=
0
;
i
<
100
;
i
++
){
if
(
option
==
bags
[
i
].
cnn
){
...
...
@@ -216,7 +222,7 @@ void box(){
for
(
int
j
=
i
+
1
;
j
<
100
;
j
++
){
bags
[
j
].
cnn
--
;
}
cout
<<
"
�����ɹ�
"
;
cout
<<
"
丢弃成功
"
;
return
;
}
}
...
...
@@ -248,21 +254,21 @@ int main12(){
}
void
lingdong
(){
cout
<<
"
��ӭ�����鶴
"
<<
endl
;
cout
<<
"
欢迎来到灵洞
"
<<
endl
;
Sleep
(
1000
);
cout
<<
"1.
ˢ��(�ȼ���) 2.����Ȫ
"
;
cout
<<
"1.
刷级(等级高) 2.泡温泉
"
;
cin
>>
option
;
if
(
option
==
1
){
cout
<<
"
�������ˡ���
"
<<
endl
;
cout
<<
"
你遇见了——
"
<<
endl
;
Sleep
(
1000
);
savage
=
rand
()
%
2
;
if
(
savage
==
0
){
cout
<<
"
��ˮ����"
<<
" "
<<
"�ȼ���
"
<<
rand
()
%
(
100
-
80
+
1
)
+
80
;
cout
<<
"
碧水金睛兽"
<<
" "
<<
"等级:
"
<<
rand
()
%
(
100
-
80
+
1
)
+
80
;
}
else
if
(
savage
==
1
){
cout
<<
"
̫������"
<<
" "
<<
"�ȼ���
"
<<
rand
()
%
(
100
-
80
+
1
)
+
80
;
cout
<<
"
太古龙象"
<<
" "
<<
"等级:
"
<<
rand
()
%
(
100
-
80
+
1
)
+
80
;
}
}
else
if
(
option
==
2
){
cout
<<
"
������Ҫ�ݵ�ʱ��
"
;
cout
<<
"
请输入要泡的时间
"
;
cin
>>
times
;
for
(
int
i
=
0
;
i
<
times
;
i
++
){
cout
<<
i
<<
" "
;
...
...
@@ -276,18 +282,18 @@ void lingdong(){
}
//void equip(){
// cout<<"
ͷ��
:"<<head<<endl;
// cout<<"
�ؼ�
:"<<body<<endl;
// cout<<"
����
:"<<trousers<<endl;
// cout<<"
��
:"<<shoes<<endl;
// cout<<"
����
:"<<
// cout<<"
头部
:"<<head<<endl;
// cout<<"
胸甲
:"<<body<<endl;
// cout<<"
裤子
:"<<trousers<<endl;
// cout<<"
鞋子
:"<<shoes<<endl;
// cout<<"
武器
:"<<
// cout<<endl;
// cout<<"
�����Ƿ�Ҫ����װ��
"<<endl;
// cout<< "1.
Ҫ 2.��Ҫ
";
// cout<<"
请问是否要调整装备
"<<endl;
// cout<< "1.
要 2.不要
";
// cin>>option;
// if(option==1){
// bag2();
// cout<<"
������Ҫ�滻��װ��������
"<<endl;
// cout<<"
请输入要替换的装备的名称
"<<endl;
// string a;
// cin>>a;
// for(int i=0;i<100;i++){
...
...
@@ -298,37 +304,37 @@ void lingdong(){
//}
void
equip_bag
(){
cout
<<
"
��ʱΪ��
"
;
cout
<<
"
暂时为空
"
;
}
void
skill_board
(){
cout
<<
"
��ʱΪ��
"
;
cout
<<
"
暂时为空
"
;
}
void
zhanchang
(){
cout
<<
"��ʱΪ��
"
;
}
//
void zhanchang(){
// cout<<"暂时为空
";
//
}
void
shenming
(){
cout
<<
"
��ʱΪ��
"
;
cout
<<
"
暂时为空
"
;
}
void
huo
(){
cout
<<
"
��ʱΪ��
"
;
cout
<<
"
暂时为空
"
;
}
void
bin
(){
cout
<<
"
��ʱΪ��
"
;
cout
<<
"
暂时为空
"
;
}
void
jin
(){
cout
<<
"��ʱΪ��
"
;
}
//
void jin(){
// cout<<"暂时为空
";
//
}
void
shu
(){
cout
<<
"��ʱΪ��"
;
}
void
lu
(){
cout
<<
"��ʱΪ��"
;
cout
<<
"暂时为空"
;
}
//
//void lu(){
// cout<<"暂时为空";
//}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录