#include <bits/stdc++.h>
using namespace std;
int s = 2, i = 60;
char v, n, y, u;
int f = 51, x = 0, d1 = 1, n11 = 100,RP=0,rp[1000000];
int wjsl=666;
int main()
{
rp[1]=500;
rp[2]=500;
rp[3]=10000;
rp[666]=10000;
int a;
//启动界面
cout << " * 请按任意键启动游戏*" << endl;
v=getchar();
cout<<"加载中";
for(int i=1;i<=5;i++){
cout<<"-"<<" ";
int jjjjj;
for(int i=1;i<=1000000000;i++){
jjjjj=1+1;
}
}
while(1){
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>-------------- 首页 -------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> _____________ _____________ <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>| | | | <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>| 1.开始游戏 | | 2.公告 | <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>|_____________| |_____________| <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">>></span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>v <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-string hl-quoted hl-single hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">'</span>1<span class="hl-punctuation hl-definition hl-string hl-end hl-c">'</span></span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>---------- 恶魔轮盘赌 ----------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-storage hl-type hl-c">int</span> zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">10</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-punctuation hl-separator hl-c++">,</span> dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">10</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-punctuation hl-separator hl-c++">,</span> dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">10</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-punctuation hl-separator hl-c++">,</span> hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-separator hl-c++">,</span> hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-separator hl-c++">,</span> aaa<span class="hl-punctuation hl-separator hl-c++">,</span> zds <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-separator hl-c++">,</span> sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-separator hl-c++">,</span> xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-separator hl-c++">,</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">while</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">!=</span> <span class="hl-constant hl-numeric hl-c++">0</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&amp;&amp;</span> hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">!=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">srand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">time</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-constant hl-numeric hl-c++">0</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>&gt;&gt;--------------------------------------------------------------&lt;&lt;<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A的道具为 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> i <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">==</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B的道具为 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">for</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span><span class="hl-storage hl-type hl-c">int</span> i <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-terminator hl-c++">;</span> i<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> i <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>i<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">==</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>&gt;&gt;--------------------------------------------------------------&lt;&lt;<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-storage hl-type hl-c">int</span> bh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">srand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">time</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-constant hl-numeric hl-c++">0</span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span></span></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zds <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">while</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zds <span class="hl-keyword hl-operator hl-comparison hl-c">&gt;=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xs <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>-------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>轮到A<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
bh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">while</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
bh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要使用什么道具?请输入编号<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>当前可用道具:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>1<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>2<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>3<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>4<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>(如果当前无可用道具即可用道具为空,输入1即可)<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> aaa<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这个道具已经使用过了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用香烟<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你的血量加一<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用啤酒<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>退出一发空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>退出一发实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">continue</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用小刀<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>下一次开枪攻击翻倍<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用放大镜<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是一发空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是一发实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xs <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>-------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>轮到B<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
bh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">while</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
bh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span> <span class="hl-meta hl-function-call hl-c++"><span class="hl-support hl-function hl-C99 hl-c">rand</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span></span></span><span class="hl-meta hl-function-call hl-c++"></span><span class="hl-meta hl-function-call hl-c++"><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">%</span> <span class="hl-constant hl-numeric hl-c++">6</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要使用什么道具?请输入编号<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>当前可用道具:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>1<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>2<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>3<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span><span class="hl-keyword hl-operator hl-comparison hl-c">!=</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>4<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>香烟 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>啤酒 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>小刀 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span><span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>放大镜 <span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>(如果当前无可用道具即可用道具为空,输入1即可)<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
// cout<<""<<endl;
cin>>aaa;
if (dj2[aaa] == -1) {
cout << endl<<"这个道具已经使用过了"
<< "\n";
cout << endl<<"你要对谁开枪?1.对对方2.对自己"
<< "\n";
cin >> xz;
zds--;
if (xz == 1) {
if (zd[bh] == 1) {
cout << "这是实弹"
<< "\n";
hp1 = hp1 - sh;
if (hp1 <= 0) {
cout << "B赢了"
<< "\n";
cout << endl
<< "----------------------------------------game over-------------------------------------------------"
<< "\n"
<< "\n";
cout << " <----- n.结束游戏 -------------" << endl;
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> <----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用香烟<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2<span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">+</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你的血量加一<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用啤酒<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>退出一发空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>退出一发实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">continue</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">3</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用小刀<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">2</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>下一次开枪攻击翻倍<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj2<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">4</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>使用放大镜<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
dj1<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>aaa<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是一发空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是一发实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>你要对谁开枪?1.对对方2.对自己<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> xz<span class="hl-punctuation hl-terminator hl-c++">;</span>
zds<span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>xz <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp1 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp1 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>zd<span class="hl-meta hl-brackets hl-c++"><span class="hl-punctuation hl-section hl-brackets hl-begin hl-c++">[</span>bh<span class="hl-punctuation hl-section hl-brackets hl-end hl-c++">]</span></span> <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
hp2 <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span> sh<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>hp2 <span class="hl-keyword hl-operator hl-comparison hl-c">&lt;=</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A赢了<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>----------------------------------------game over-------------------------------------------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- n.结束游戏 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> &lt;----- f.再来一次 -------------<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">break</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B血量-<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> sh <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>A剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp1 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>B剩余血量:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> hp2 <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
xs <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">-</span>xs<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span> <span class="hl-keyword hl-control hl-c++">else</span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>这是空弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span>
<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
sh <span class="hl-keyword hl-operator hl-assignment hl-c">=</span> <span class="hl-constant hl-numeric hl-c++">1</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">if</span> <span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>v <span class="hl-keyword hl-operator hl-comparison hl-c">==</span> <span class="hl-string hl-quoted hl-single hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">'</span>2<span class="hl-punctuation hl-definition hl-string hl-end hl-c">'</span></span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span> <span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span> <span class="hl-comment hl-line hl-double-slash hl-c"><span class="hl-punctuation hl-definition hl-comment hl-c">//</span>公告
cout << endl<< "-------------- 公告 --------------------------------" << endl<< endl;
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 欢迎游玩恶魔轮盘赌(双人版)<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c"><<</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 版本:2.60<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 本次更新了使用道具前的提示和血量提示,优化了亿点版面,尽情期待新道具手铐和实/空弹提示......<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>游戏规则:<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>1.每名玩家初始有4点血量,血量归零则失败<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>2.和普通轮盘赌一样,枪里有空弹和实弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>3.每名玩家每轮会随机分配道具<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>4.游戏中有四种道具(没有手铐):香烟、啤酒、小刀、放大镜<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span><span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span>5.道具的作用分别是:增加一点血量、退出当前子弹、下一轮伤害翻倍、查看当前子弹<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span>endl<span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 祝你玩得开心<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span><span class="hl-constant hl-character hl-escape hl-c">\n</span><span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span><span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 1.返回首页<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cout <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> <span class="hl-string hl-quoted hl-double hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">"</span> 2.结束游戏<span class="hl-punctuation hl-definition hl-string hl-end hl-c">"</span></span> <span class="hl-keyword hl-operator hl-arithmetic hl-c">&lt;&lt;</span> endl<span class="hl-punctuation hl-terminator hl-c++">;</span>
cin <span class="hl-keyword hl-operator hl-arithmetic hl-c">&gt;&gt;</span> v<span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-keyword hl-control hl-c++">if</span><span class="hl-meta hl-group hl-c++"><span class="hl-punctuation hl-section hl-group hl-begin hl-c++">(</span>v<span class="hl-keyword hl-operator hl-comparison hl-c">==</span><span class="hl-string hl-quoted hl-single hl-c"><span class="hl-punctuation hl-definition hl-string hl-begin hl-c">'</span>2<span class="hl-punctuation hl-definition hl-string hl-end hl-c">'</span></span><span class="hl-punctuation hl-section hl-group hl-end hl-c++">)</span></span><span class="hl-meta hl-block hl-c++"><span class="hl-punctuation hl-section hl-block hl-begin hl-c++">{</span>
<span class="hl-keyword hl-control hl-c++">return</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-punctuation hl-section hl-block hl-end hl-c++">}</span></span>
<span class="hl-keyword hl-control hl-c++">return</span> <span class="hl-constant hl-numeric hl-c++">0</span><span class="hl-punctuation hl-terminator hl-c++">;</span>
}
共 5 条回复
《可放心食用》
浅浅改了一下
赞
可放心食用