0
已解决
荣光峰
资深光能
资深光能
本萌新想做一个游戏,有大佬和我一起编吗?
一段代码:
#include <bits/stdc++.h>
#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <windows.h>
#include <stdlib.h>
#pragma GCC optimize(3)//system("cls");
using namespace std;
int a1[100][100]={{0,0,0,3,3,0,0,0,0,0,0,0},{0,0,0,3,3,0,0,0,0,0,0,0},{1,1,1,1,1,1,1,1,0,0,0,0},{1,4,4,4,4,1,1,1,2,2,2,0,0},{1,4,4,4,4,1,1,1,2,2,2,0,0},{1,1,1,1,1,1,1,1,0,0,0,0},{1,1,1,1,1,1,1,0,0,0,0,0},{0,0,1,0,0,0,0,0,1,2,2,0},{0,0,1,2,2,2,2,2,1,2,2,0},{0,0,1,0,0,0,0,0,1,2,2,0},{0,0,1,2,2,2,2,2,1,2,2,0},{0,0,1,0,0,0,0,0,1,2,2,0},{0,0,1,2,2,2,2,2,1,2,2,0},{0,0,0,0,0,0,0,0,1,2,2,0}};//0代表没有,1代表走廊,2代表教室,3代表教师办公室,4代表校长办公室
int mlxx;
int zdxx;
int main(){
string ajf="作为一个合格的坏(好)学生,梦想自然是炸学校了,今天,它来了!!!!!";
string ajf1="欢迎来倒轰炸学校!你的梦想将在这里实现!";
string ajf2="版权所有:荣光峰";
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
for(int i=0;i<ajf.size();i++){
cout<<ajf[i];
Sleep(100);
}
system("cls");
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" ";
for(int i=0;i<ajf1.size();i++){
cout<<ajf1[i];
Sleep(100);
}
cout<<endl;
cout<<" ";
for(int i=0;i<ajf2.size();i++){
cout<<ajf2[i];
Sleep(100);
}
system("cls");
while(1){
cout<<"您要干什么?"<<endl<<"1.炸学校"<<" "<<"2.技能加点"<<" "<<"3.退出";
cin>>mlxx;
if(mlxx==1){
cout<<"请选关卡"<<endl<<"① "<<"② "<<"③ "<<"④ "<<"⑤ "<<"⑥ "<<"⑦ "<<"⑧ "<<"⑨ "<<"⑩ ";
}
}
return 0;
}
有意者加我QQ:1480950670