C / C + + programming diary: strategy play strange text games (repair optimization version with source code)


This game is very simple. It is a game composed of a for loop, several while and multiple if statements













Hit 100 to get 100 “gold coin”<>b;if(b==1){intsm=20,gj=10;intduobi=duobi1;cout<0){cout<>c;if(c==1){shengming-=gj;sm-=gongji;cout<0){cout<







Enter: C; if (C = = 1) {Shengming – = GJ; SM – = Gongji; cout<0){cout<




1. Revised unreasonable words and typos

2. Optimized combat, no more dead loop or infinite evasion

3. Add the demon king, you can pass the Customs after victory

4. Fixed the number of gold coins won by victory

5. More user-friendly purchasing interface

6. You won’t quit the game immediately after you die. You will quit after pressing the key

7. Revised the plot (just four words ㄟ (▔, ▔) ㄏ)

8. Add exit function


Recommended Today

Rust and python: why rust can replace Python

In this guide, we compare the rust and python programming languages. We will discuss the applicable use cases in each case, review the advantages and disadvantages of using rust and python, and explain why rust might replace python. I will introduce the following: What is rust? What is Python? When to use rust When to […]