拒绝AI,纯手写

#include <bits/stdc++.h>
#include <fstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <algorithm>
#include <sstream>
#include <windows.h>
#include <vector>
#include <limits>
using namespace std;

void dy1(int x){
	cout<<"开始游戏 (y/n)";
	char cdy;
	cin>>cdy;
	if(cdy=='n') return ;
	for(int i=1;i<=7;i++) {
		cout<<"加载中.";
		Sleep(200);
		system("cls"); // 清屏
		cout<<"加载中..";
		Sleep(210);
		system("cls"); // 清屏
		cout<<"加载中...";
		Sleep(220);
		system("cls"); // 清屏
	}
	cout<<"*你出现";
	Sleep(80);
	cout<<"一个";
	Sleep(83);
	cout<<"阴森的走廊\n"; 
	int scd;
	cout<<"*你现在有两种选择..\n";
	cout<<" 1.向前走\n";
	cout<<" 2.推开旁边的房门\n";
	cin>>scd;
	if(scd==2){
		cout<<"你没有钥匙...dasdfwe^&$dh\n"; 
		while(scd==2){
			cout<<"*你现在有两种选择..\n";
			cout<<" 1.向前走\n";
			cout<<" 2.推开旁边的房门\n";
			cin>>scd;
			if(scd==2){
				cout<<"你没有钥匙...\n";
			} 
		}
	}
}
int main() {

	cout<<"你想干甚么?";
	int dy=1;
	for(int i=1;;i++){
		cout<<"w/s键选择\n";
		char ws;
		cin>>ws;
		if(ws=='s'&&dy<2) dy++;
		if(ws=='w'&&dy>1) dy--;
		system("cls"); // 清屏
		if(dy==1){
			cout<<">传说之下<\n";
			cout<<"确定吗?(y/n)\n";			
			cout<<" 我的世界(敬请期待) \n"; 
			cout<<" (去投稿吧) \n";
			char sed;
			cin>>sed;
			if(sed=='y'){
				dy1(1);
				system("cls"); // 清屏
			}

		}
		if(dy==2){
			cout<<" 传说之下 \n";
			cout<<">我的世界(敬请期待)<\n"; 
			cout<<" (去投稿吧) \n";
		}
	} 
	return 0;
}


我更新了一些东西

0 条评论

目前还没有评论...