写了一个短一点的钓鱼小游戏,献上代码^_^:
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
system("color 4b");
srand(time(NULL));
system("cls");
char name;
int fish = 2,luck,mp = 5,i;
cout << "请输入姓名" << endl;
cin >> name;
system("cls");
cout << name << "的钓鱼游戏" << endl;
cout << "目前鱼数:" << fish << endl;
cout << "生命值:" << mp << endl;
cout << "1.钓鱼 2.吃鱼" << endl;
cin >> i;
while(mp > 0)
{
if(i == 1)
{
310


&spm=1001.2101.3001.11974&articleId=119938964&d=1&t=3&u=6e10895ea6424b5789f7dafce4ba03a0)

被折叠的 条评论
为什么被折叠?



