代碼
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int a,y;
char c;
int main()
{
cout<<"植物大戰(zhàn)僵尸文字版"<<endl;
cout<<"輸入“1”開始"<<endl;
cin>>a;
if(a==1)
{
cout<<"開始"<<endl;
cout<<"介紹:植物將以卡牌的形式出現(xiàn)"<<endl;
cout<<"向日葵:0陽光,產(chǎn)出1陽光"<<endl;
cout<<"豌豆:1陽光,造成1傷害"<<endl;
cout<<"初始植物:1代表使用向日葵,2代表使用豌豆"<<endl;
cout<<"1-1"<<endl;
cout<<"你的回合"<<endl;
cout<<"僵尸血量:2"<<endl;
cout<<"陽光數(shù)"<<y<<endl;
cout<<"輸入數(shù)字選擇要用的植物"<<endl;
}
}
標簽: