资深守护
杜承俊在2021-07-09 12:20:19追加了内容
谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢
资深光能
#include <assert.h>
#include <tchar.h>
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int f1[7][7] = {
{0,0,0,0,0,0},
{0,2,0,1,4,0},
{0,1,0,1,0,0},
{0,1,0,3,0,0},
{0,1,1,1,0,0},
{0,0,0,0,0,0},
};
int f2[11][11] = {
{0,0,0,0,0,0,0,0,0,0},
{0,2,0,0,1,1,1,1,3,0},
{0,1,1,3,1,0,0,0,1,0},
{0,1,0,0,0,0,0,0,1,0},
{0,1,0,0,0,0,0,0,1,0},
{0,1,3,1,1,1,1,1,3,0},
{0,1,0,0,1,0,0,0,1,0},
{0,1,3,0,1,0,0,0,1,0},
{0,1,1,1,1,3,0,0,4,0},
{0,0,0,0,0,0,0,0,0,0},
};
int f3[13][13] = {
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,2,1,1,1,1,1,0,0,1,3,1,0},
{0,1,0,0,0,0,1,0,0,1,0,1,0},
{0,1,1,1,0,0,1,0,0,1,0,3,0},
{0,3,0,1,0,0,1,1,1,1,0,0,0},
{0,0,0,1,1,0,0,0,0,0,0,0,0},
{0,0,0,0,1,1,1,0,1,1,1,1,0},
{0,1,1,1,0,0,1,0,1,0,0,1,0},
{0,1,0,1,0,0,1,1,1,0,0,3,0},
{0,3,0,1,0,0,1,0,0,0,0,4,0},
{0,1,0,1,1,1,1,0,0,0,0,0,0},
{0,3,0,3,3,3,3,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
};
int f4[100][100]={
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,2,0,0,1,1,1,0,0,0,0,3,1,1,0},
{0,1,1,1,1,0,1,1,1,1,1,1,0,3,0},
{0,1,0,3,0,0,0,3,0,1,0,3,0,3,0},
{0,1,0,0,3,0,0,0,0,3,0,0,0,0,0},
{0,1,1,1,1,1,1,1,1,1,0,0,0,0,0},
{0,1,0,0,0,1,0,0,0,0,0,0,0,0,0},
{0,1,0,0,0,1,0,0,0,1,1,1,0,0,0},
{0,3,0,0,0,1,3,1,1,1,0,1,0,0,0},
{0,3,0,0,0,1,0,0,0,0,0,1,0,0,0},
{0,0,1,1,1,1,0,0,0,0,0,3,0,0,0},
{0,0,1,0,0,1,0,0,0,0,0,1,0,0,0},
{0,3,1,0,0,3,0,0,0,0,0,3,0,0,0},
{0,3,0,0,0,0,0,0,0,0,0,4,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
};
int dy(){
int a=1,b=1,cnt=0;
while(1){
char w;
cin>>w;
if(w=='W'&&f1[a-1][b]!=0){
if(f1[a-1][b]==3){
f1[a-1][b]-=1;
f1[a][b]-=1;
a-=1;
cnt++;
}else{
f1[a-1][b]+=1;
f1[a][b]-=1;
a-=1;
}
}else if(w=='S'&&f1[a+1][b]!=0){
if(f1[a+1][b]==3){
f1[a+1][b]-=1;
f1[a][b]-=1;
a+=1;
cnt++;
}else{
f1[a+1][b]+=1;
f1[a][b]-=1;
a+=1;
}
}else if(w=='A'&&f1[a][b-1]!=0){
if(f1[a][b-1]==3){
f1[a][b-1]-=1;
f1[a][b]-=1;
b-=1;
cnt++;
}else{
f1[a][b-1]+=1;
f1[a][b]-=1;
b-=1;
}
}else if(w=='D'&&f1[a][b+1]!=0){
if(f1[a][b+1]==3){
f1[a][b+1]-=1;
f1[a][b]-=1;
b+=1;
cnt++;
}else if(f1[a][b+1]==4){
break;
}else{
f1[a][b+1]+=1;
f1[a][b]-=1;
b+=1;
}
}
system("cls");
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 6; i++){
for (int j = 0; j < 6; j++){
if(f1[i][j]==0){
cout << "■";
}
if(f1[i][j]==1){
cout << " ";
}
if(f1[i][j]==2){
cout << "♀";
}
if(f1[i][j]==3){
cout << "★";
}
if(f1[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
}
return cnt;
}
int dr(){
int a=1,b=1,cnt=0;
while(1){
char w;
cin>>w;
if(w=='W'&&f2[a-1][b]!=0){
if(f2[a-1][b]==3){
f2[a-1][b]-=1;
f2[a][b]-=1;
a-=1;
cnt++;
}else{
f2[a-1][b]+=1;
f2[a][b]-=1;
a-=1;
}
}else if(w=='S'&&f2[a+1][b]!=0){
if(f2[a+1][b]==3){
f2[a+1][b]-=1;
f2[a][b]-=1;
a+=1;
cnt++;
}else if(f2[a+1][b]==4){
break;
}else{
f2[a+1][b]+=1;
f2[a][b]-=1;
a+=1;
}
}else if(w=='A'&&f2[a][b-1]!=0){
if(f2[a][b-1]==3){
f2[a][b-1]-=1;
f2[a][b]-=1;
b-=1;
cnt++;
}else{
f2[a][b-1]+=1;
f2[a][b]-=1;
b-=1;
}
}else if(w=='D'&&f2[a][b+1]!=0){
if(f2[a][b+1]==3){
f2[a][b+1]-=1;
f2[a][b]-=1;
b+=1;
cnt++;
}else{
f2[a][b+1]+=1;
f2[a][b]-=1;
b+=1;
}
}
system("cls");
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 10; i++){
for (int j = 0; j < 10; j++){
if(f2[i][j]==0){
cout << "■";
}
if(f2[i][j]==1){
cout << " ";
}
if(f2[i][j]==2){
cout << "♀";
}
if(f2[i][j]==3){
cout << "★";
}
if(f2[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
}
}
int ds(){
int a=1,b=1,cnt=0;
while(1){
char w;
cin>>w;
if(w=='W'&&f3[a-1][b]!=0){
if(f3[a-1][b]==3){
f3[a-1][b]-=1;
f3[a][b]-=1;
a-=1;
cnt++;
}else{
f3[a-1][b]+=1;
f3[a][b]-=1;
a-=1;
}
}else if(w=='S'&&f3[a+1][b]!=0){
if(f3[a+1][b]==3){
f3[a+1][b]-=1;
f3[a][b]-=1;
a+=1;
cnt++;
}else if(f3[a+1][b]==4){
break;
}else{
f3[a+1][b]+=1;
f3[a][b]-=1;
a+=1;
}
}else if(w=='A'&&f3[a][b-1]!=0){
if(f3[a][b-1]==3){
f3[a][b-1]-=1;
f3[a][b]-=1;
b-=1;
cnt++;
}else{
f3[a][b-1]+=1;
f3[a][b]-=1;
b-=1;
}
}else if(w=='D'&&f3[a][b+1]!=0){
if(f3[a][b+1]==3){
f3[a][b+1]-=1;
f3[a][b]-=1;
b+=1;
cnt++;
}else{
f3[a][b+1]+=1;
f3[a][b]-=1;
b+=1;
}
}
system("cls");
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 13; i++){
for (int j = 0; j < 13; j++){
if(f3[i][j]==0){
cout << "■";
}
if(f3[i][j]==1){
cout << " ";
}
if(f3[i][j]==2){
cout << "♀";
}
if(f3[i][j]==3){
cout << "★";
}
if(f3[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
}
}
void ds1(){
int a=1,b=1,cnt=0;
while(1){
char w;
cin>>w;
if(w=='W'&&f4[a-1][b]!=0){
if(f4[a-1][b]==3){
f4[a-1][b]-=1;
f4[a][b]-=1;
a-=1;
cnt++;
}else{
f4[a-1][b]+=1;
f4[a][b]-=1;
a-=1;
}
}else if(w=='S'&&f4[a+1][b]!=0){
if(f4[a+1][b]==3){
f4[a+1][b]-=1;
f4[a][b]-=1;
a+=1;
cnt++;
}else if(f4[a+1][b]==4){
break;
}else{
f4[a+1][b]+=1;
f4[a][b]-=1;
a+=1;
}
}else if(w=='A'&&f4[a][b-1]!=0){
if(f4[a][b-1]==3){
f4[a][b-1]-=1;
f4[a][b]-=1;
b-=1;
cnt++;
}else{
f4[a][b-1]+=1;
f4[a][b]-=1;
b-=1;
}
}else if(w=='D'&&f4[a][b+1]!=0){
if(f4[a][b+1]==3){
f4[a][b+1]-=1;
f4[a][b]-=1;
b+=1;
cnt++;
}else{
f4[a][b+1]+=1;
f4[a][b]-=1;
b+=1;
}
}
system("cls");
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 13; i++){
for (int j = 0; j < 13; j++){
if(f4[i][j]==0){
cout << "■";
}
if(f4[i][j]==1){
cout << " ";
}
if(f4[i][j]==2){
cout << "♀";
}
if(f4[i][j]==3){
cout << "★";
}
if(f4[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
}
}
void sy(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://ke.codingtang.com/#/home");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void tk(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://ke.codingtang.com/#/problem/problemList");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void bd(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://www.baidu.com/?tn=49055317_3_hao_pg");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void wd(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://wenda.codingtang.com/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNDc4LCJ1c2VybmFtZSI6ImNoZW56ZWxpbiIsImV4cCI6MTY0MzIwMTQ5OSwiZW1haWwiOiIifQ.ibw8I6b9epZHSn00XcwZfvYb8nBLXmzeWWWYVg8SrIE");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void pm(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://ke.codingtang.com/#/ranking/seasonClass");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void yx(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://dev.codingtang.com/#/home");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void bj(){
const TCHAR szOperation[] = _T("open");
const TCHAR szAddress[] = _T("https://ke.codingtang.com/#/course/index");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd);
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szAddress, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
exit(100);
}
}
void keke(){
system("cls");
system("color 01");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 02");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 03");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 04");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 05");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 06");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 07");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 08");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 09");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
system("color 10");
cout<<"■ ■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■■ ■■■■■"<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■ "<<endl;
cout<<"■ ■ ■■■■■"<<endl;
Sleep(20);
system("cls");
cout << "/**********************************\\\n";
cout << "* *\n";
cout << "* 吃keke小游戏 *\n";
cout << "* 晨光(C.G)工作室出品 *\n";
cout << "* 1.按 S 或 s 键 开 始 *\n";
cout << "* 2.按 Q 或 q 键 退 出 *\n";
cout << "* *\n";
cout << "\\**********************************/\n";
char t;
cin>>t;
if(t=='Q'||t=='q'){
system("cls");
cout<<"欢迎下次再来";
for(int i=1;i<=6;i++){
cout<<".";
Sleep(100);
}
return ;
}else{
system("cls");
for(int i=1;i<=4;i++){
cout<<"正在加载中"<<endl;
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
system("cls");
}
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 6; i++){
for (int j = 0; j < 6; j++){
if(f1[i][j]==0){
cout << "■";
}
if(f1[i][j]==1){
cout << " ";
}
if(f1[i][j]==2){
cout << "♀";
}
if(f1[i][j]==3){
cout << "★";
}
if(f1[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
int h=dy();
Sleep(1000);
system("cls");
cout<<"恭喜你成功通过了第一关,你吃到了"<<h<<"个keke。接下来,将进入第二关。";
Sleep(2000);
system("cls");
for(int i=1;i<=4;i++){
cout<<"正在加载中"<<endl;
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
system("cls");
}
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 10; i++){
for (int j = 0; j < 10; j++){
if(f2[i][j]==0){
cout << "■";
}
if(f2[i][j]==1){
cout << " ";
}
if(f2[i][j]==2){
cout << "♀";
}
if(f2[i][j]==3){
cout << "★";
}
if(f2[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
h=dr();
Sleep(1000);
system("cls");
cout<<"恭喜你成功通过了第二关,你吃到了"<<h<<"个keke。接下来,将进入第三关。";
Sleep(2000);
system("cls");
for(int i=1;i<=4;i++){
cout<<"正在加载中"<<endl;
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
system("cls");
}
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 13; i++){
for (int j = 0; j < 13; j++){
if(f3[i][j]==0){
cout << "■";
}
if(f3[i][j]==1){
cout << " ";
}
if(f3[i][j]==2){
cout << "♀";
}
if(f3[i][j]==3){
cout << "★";
}
if(f3[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
ds();
Sleep(1000);
system("cls");
cout<<"恭喜你成功通过了第三关,你吃到了"<<h<<"个keke。接下来,将进入第四关。";
Sleep(2000);
system("cls");
for(int i=1;i<=4;i++){
cout<<"正在加载中"<<endl;
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
system("cls");
}
cout << "/*********************************\\\n";
cout << "* *\n";
cout << "* 操 作 提 示 *\n";
cout << "* *\n";
cout << "* 操作上移:W w *\n";
cout << "* 操作下移:S s *\n";
cout << "* 操作左移:A a *\n";
cout << "* 操作右移:D d *\n";
cout << "* *\n";
cout << "\\*********************************/\n";
for (int i = 0; i < 13; i++){
for (int j = 0; j < 13; j++){
if(f4[i][j]==0){
cout << "■";
}
if(f4[i][j]==1){
cout << " ";
}
if(f4[i][j]==2){
cout << "♀";
}
if(f4[i][j]==3){
cout << "★";
}
if(f4[i][j]==4){
cout << "□";
}
}
cout<<endl;
}
ds1();
Sleep(1000);
system("cls");
}
}
void d1(){
cout<<"逃离伏拉夫第一关即将开始。";
cout<<endl;
for(int i=1;i<=6;i++){
cout<<".";
Sleep(500);
}
system("cls");
MessageBox(NULL,"伏拉夫来了!","CATTLE PC S1 system",MB_OK);
cout<<"伏拉夫:今天我要吃小孩火锅!"<<endl;
cout<<"伏拉夫马上到你家门口,请做好准备。"<<endl;
}
void tf(){
system("cls");
int b[100000];
MessageBox(NULL,"逃离伏拉夫欢迎您","CATTLE PC S1 system",MB_OK);
cout<<"正在玩命加载中";
Sleep(500);
for(int i=1;i<=6;i++){
cout<<".";
Sleep(500);
}
system("cls");
string s="逃离伏拉夫2.0版本";
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(60);
}
system("cls");
system("color 06");
for(int i=1;i<=22;i++){
cout<<"=";
Sleep(60);
}
cout<<endl;
cout<<"|";
Sleep(60);
cout<<"伏";
Sleep(60);
cout<<"拉";
Sleep(60);
cout<<"夫";
Sleep(60);
cout<<"大";
Sleep(60);
cout<<"战";
Sleep(60);
cout<<"小";
Sleep(60);
cout<<"孩";
Sleep(60);
cout<<"!";
Sleep(60);
cout<<"!";
Sleep(60);
cout<<"!";
Sleep(60);
cout<<"|";
Sleep(60);
cout<<endl;
for(int i=1;i<=22;i++){
cout<<"=";
Sleep(60);
}
cout<<endl;
cout << "/**********************************\\\n";
cout << "* *\n";
cout << "* 经典小游戏 *\n";
cout << "* 逃离伏拉夫 *\n";
cout << "* 晨光(C.G)工作室出品 *\n";
cout << "* 1.按 1 键 开 始 *\n";
cout << "* *\n";
cout << "\\**********************************/\n";
int fafa;
cin>>fafa;
if(fafa==1){
system("cls");
while(1){
int t;
system("cls");
system("color 04");
cout<<endl<<"请选择闯关模式或经典模式(1.闯关模式,2.经典模式):"<<endl;
cin>>fafa;
if(fafa==1){
system("cls");
int t1;
cout<<"请输入你要玩的关卡:";
cin>>t1;
b[1]=1;
if(b[t1]==0){
cout<<"这一关还没解锁,请换一关。";
cout<<"重新输入关卡:";
cin>>t1;
}
else{
system("cls");
d1();
}
}
}
}
}
void CG(){
system("cls");
if(MessageBox(NULL,"即将进入推keke小游戏","CATTLE PC S1 system",MB_YESNO)==6){
keke();
}else if(MessageBox(NULL,"即将进入逃离伏拉夫文字游戏","CATTLE PC S1 system",MB_YESNO)==6){
tf();
}
}
void opencattle(){
cout<<" ■■■■ ■ ■■■■■■■ ■■■■■■■ ■ ■■■■■ \n";
cout<<" ■ ■ ■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■■■■ \n";
cout<<" ■ ■■■■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■■■■ ■ ■ ■ ■ ■■■■■ ■■■■■ \n";
Sleep(2000);
MessageBox(NULL,"CATTLE系统即将启动","CATTLE PC S1 system",MB_OK);
system("cls");
cout<<" ■■■■ ■ ■■■■■■■ ■■■■■■■ ■ ■■■■■ \n";
cout<<" ■ ■ ■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■■■■ \n";
cout<<" ■ ■■■■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■■■■ ■ ■ ■ ■ ■■■■■ ■■■■■ \n";
cout<<" 正在启动CATTLE PC S1%25 \n";
Sleep(1000);
system("cls");
cout<<" ■■■■ ■ ■■■■■■■ ■■■■■■■ ■ ■■■■■ \n";
cout<<" ■ ■ ■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■■■■ \n";
cout<<" ■ ■■■■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■■■■ ■ ■ ■ ■ ■■■■■ ■■■■■ \n";
cout<<" 正在启动CATTLE PC S1%50 \n";
Sleep(1000);
system("cls");
cout<<" ■■■■ ■ ■■■■■■■ ■■■■■■■ ■ ■■■■■ \n";
cout<<" ■ ■ ■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■■■■ \n";
cout<<" ■ ■■■■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■■■■ ■ ■ ■ ■ ■■■■■ ■■■■■ \n";
cout<<" 正在启动CATTLE PC S1%75 \n";
Sleep(1000);
system("cls");
cout<<" ■■■■ ■ ■■■■■■■ ■■■■■■■ ■ ■■■■■ \n";
cout<<" ■ ■ ■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■■■■ \n";
cout<<" ■ ■■■■■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■ ■ ■ ■ ■ ■ ■ ■ \n";
cout<<" ■■■■ ■ ■ ■ ■ ■■■■■ ■■■■■ \n";
cout<<" 正在启动CATTLE PC S1%100 \n";
Sleep(1000);
system("cls");
MessageBox(NULL,"CATTLE系统启动完成","CATTLE PC S1 system",MB_OK);
while(1){
cout<<"|-------------------------------------------------------------------------------------------|\n";
cout<<"| 1.酷町堂首页 |\n";
cout<<"| 2.酷町堂题库 |\n";
cout<<"| 3.百度 |\n";
cout<<"| 4.酷町堂排名 |\n";
cout<<"| 5.酷町问答 |\n";
cout<<"| 6.酷町堂游戏专区 |\n";
cout<<"| 7.C.G专属游戏库 |\n";
cout<<"| 8.酷町堂我的班级 |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"| |\n";
cout<<"|0.关机 |\n";
cout<<"|-------------------------------------------------------------------------------------------|\n";
int fafa;
cin>>fafa;
if(fafa==1){
sy();
}else if(fafa==2){
tk();
}else if(fafa==3){
bd();
}else if(fafa==4){
pm();
}else if(fafa==5){
wd();
}else if(fafa==6){
yx();
}else if(fafa==7){
CG();
}else if(fafa==0){
system("shutdown -s -t -f 10");
}else if(fafa==8){
bj();
}
}
}
int main(){
opencattle();
return 0;
}
主系统,还没做完,先拿去看