YUTUc++沙盒4.0

YUTU2022/11/16日更新的最新版本。

YUTU优盘不见了,最新版本没有了,YUTU十分抱歉,YUTU给大家一个简便版的。

没有子文件!没有子文件!没有子文件!

运行后会有一个开场白,不是BUG。

适用软件图标:

 

代码如下,c++5.11使用:

#include<bits/stdc++.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <conio.h>
#include <cmath>
#include <windows.h>
#define qdo 262
#define qre 294
#define qmi 330     //q前缀为低音,1后缀为高音,s前缀为半音阶
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;

void printf_red(const char *s)
{
    printf("\033[0m\033[1;31m%s\033[0m", s);
}
 
void printf_green(const char *s)
{
    printf("\033[0m\033[1;32m%s\033[0m", s);
}
 
void printf_yellow(const char *s)
{
    printf("\033[0m\033[1;33m%s\033[0m", s);
}
 
void printf_blue(const char *s)
{
    printf("\033[0m\033[1;34m%s\033[0m", s);
}
 
void printf_pink(const char *s)
{
    printf("\033[0m\033[1;35m%s\033[0m", s);
}
 
void printf_cyan(const char *s)
{
    printf("\033[0m\033[1;36m%s\033[0m", s);
}

string name,shijie="平坦世界";
	char dt[15][30],yutu,fx,sj=60,sl[15][30];     //                      0 1 2 3
	int sdf1=8,sdf2=8,g=1,die,gw1=9,gw2=9,hp=10,gwhp=1,wpl[9]={0,1,2,3,0,0,0,0,0},wplgs[9]={0,0,100,0,0,0,0,0,0},nj=100;
	int pai = 400,ban = 200,ting = 128;
	int szt=0,gzt=0;
	int slsh=0;
	//合成 
	int xz=5;
	bool tc=1;
	string q="      空",w="      空",e="      空";//[][][]
	string a="      空",s="      空",d="      空";//[][][]
	string z="      空",x="      空",c="      空";//[][][]
struct mob{
	int hp,number,dw;
	string name;
};
struct block{
	int dlw;
	string ym;
	char yz;
	int wz1,wz2;
};
void color(int a)
{
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
/*	1	深蓝色
	2	深绿色
	3	深青色
	4	深红色
	5	深粉色
	i	黄色
	7	深白色
	8	灰色
	9	浅蓝色
	10	浅绿色
	11	浅青色
	12	浅红色
	13	浅粉色
	14	浅黄色
	15	浅白色
	背景
	1~15		黑色
	16~31		深蓝色
	32~47		深绿色
	48~63		深青色
	64~79		深红色
	'S'~95		深粉色
	96~111		深黄色
	112~127 	深白色
	128~143 	灰色
	144~159 	浅蓝色
	160~1'A' 	浅绿色
	176~191 	浅青色
	192~207 	浅红色
	208~223 	浅粉色
	224~239 	浅黄色
	240~255 	浅白色
*/
}
void photo(char n){
	if(n=='r'){
		color(12);
		cout<<"■";
	}else if(n=='b'){
		color(1);
		cout<<"■";
	}else if(n=='y'){
		color(14);
		cout<<"■";
	}else if(n=='g'){
		color(10);
		cout<<"■";
	}else if(n=='w'){
		color(15);
		cout<<"■";
	}else if(n=='p'){
		color(13);
		cout<<"■";
	}else if(n=='k'){
		cout<<"  ";
	}
}
void photo_man(){
	if(name=="Dream"){
		//      1          2          3          4          5          6          7          8          9          10    
		 photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
		 photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
		 photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
		 photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;
		 photo('k');photo('k');photo('g
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值