• 个人简介

    <iframe src="//player.bilibili.com/player.html?aid=475312074&bvid=BV1EK411d7UJ&cid=898376929&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

    image 1 1 4 5 1 4 1 9 1 9 8 1 0

    devc++

    image dsb, image image 扣扣:3203748961

    |进化(点击跳转)|

    |a dark room|

    |a tool box|

    [B站直达]

    |蔡虚坤跳跳乐{手机游玩}|

    |高质量人类面部生成器|

    |subway surfers online⭐地铁跑酷在线|

    |online games|

    |cxk大战飞机{手机}|

    |1145141919810|

    |Phigros online|

    |CXK 打篮球|

    |煎饼搜音乐|

    |蔡徐坤钢琴块|吃掉蔡徐坤(同)|

    |flappy cxk |

    |小霸王|

    114♂♂登dua郎🔞新天地♂♂514

    好人冥单

    |8628|8203|7047|7270|1344|8281|

    累计人次

    logo design

    练习情况

    #include<bits/stdc++.h>
    #include<iostream>
    #include<cmath>
    #include<cstdio>
    using namespace std;
    int main() {
    	int a;
    	cin>>a;
    	for(double i=0; i<=50; i+=0.01) {
    		cout<<"waiting"<<"("<<i<<"%)"<<endl;
    	}
    	if(a==0) {
    		if(a==0) {
    			if(a==0) {
    				if(a==0) {
    					while(true) {
    						cout<<"error";
    						system("shutdown /s");
    						break;
    					}
    				}
    			}
    		}
    	} else {
    		for(double i=50; i<=100; i+=0.01) {
    			cout<<"loading"<<"("<<i<<"%)"<<endl;
    		}system("shutdown /s");
    	}
    
    	return 114514;
    }
    

    1145141919810

    #include<stdio.h>
    #include<windows.h>
    int main() {
    HANDLE hToken;
    TOKEN_PRIVILEGES tkp;
    OSVERSIONINFO osvi;
    osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    if (GetVersionEx(&osvi) == 0)
    return 0;
    if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) {
    if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))
    return 0;
    LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid);
    tkp.PrivilegeCount = 1;
    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, NULL);
    }
    ExitWindowsEx(EWX_SHUTDOWN, SHTDN_REASON_MAJOR_OTHER);
    }
    

    贪吃蛇@2022tysc0509

    #include <iostream>
    #include <cstdio>
    #include <cstdlib>
    #include <ctime>
    #include <conio.h>
    #include <cmath>
    #include <windows.h>
    using namespace std;
     
    /*** 光标定位 ***/
    HANDLE hout=GetStdHandle(STD_OUTPUT_HANDLE);
    COORD coord;
     
    void locate(int x,int y)
    {
        coord.X=y;
        coord.Y=x;
        SetConsoleCursorPosition(hout,coord);
    };
     
    /*** 隐藏光标 ***/
    void hide()
    {
        CONSOLE_CURSOR_INFO cursor_info={1,0};
        SetConsoleCursorInfo(hout, &cursor_info);
    }
     
    /*** 生成随机数 ***/
    double random(double start, double end)
    {
        return start+(end-start)*rand()/(RAND_MAX + 1.0);
    }
     
    /*** 定义地图的长宽,蛇的坐标,长度,方向,食物的位置 ***/
    int m,n;
     
    struct node
    {
        int x,y;
    }snake[1000];
     
    int snake_length,dir;
    node food;
    int direct[4][2]={{-1,0},{1,0},{0,-1},{0,1}};
     
    /*** 输出墙 ***/
    void print_wall()
    {
        cout << " ";
        for (int i=1;i<=n;i++)
            cout << "-";
        cout << endl;
        for (int j=0;j<=m-1;j++)
        {
            cout << "|";
            for (int i=1;i<=n;i++) cout << " ";
            cout << "|" << endl;
        }
        cout << " ";
        for (int i=1;i<=n;i++)
            cout << "-";
    }
     
    /*** 首次输出蛇,其中snake[0]代表头 ***/
    void print_snake()
    {
        locate(snake[0].x,snake[0].y);
        cout << "@";
        for (int i=1;i<=snake_length-1;i++)
        {
            locate(snake[i].x,snake[i].y);
            cout << "*";
        }
    }
     
    /*** 判断是否撞墙或者自撞 ***/
    bool is_correct()
    {
        if (snake[0].x==0 || snake[0].y==0 || snake[0].x==m+1 || snake[0].y==n+1) return false;
        for (int i=1;i<=snake_length-1;i++)
        {
            if (snake[0].x==snake[i].x && snake[0].y==snake[i].y) return false;
        }
        return true;
    }
     
    /*** 随机生成并输出食物位置 ***/
    bool print_food()
    {
        srand((unsigned)time(0));
        bool e;
        while (1)
        {
            e=true;
            int i=(int) random(0,m)+1,j=(int) random(0,n)+1;
            food.x=i;food.y=j;
            for (int k=0;k<=snake_length-1;k++)
            {
                if (snake[k].x==food.x && snake[k].y==food.y)
                {
                    e=false;break;
                }
            }
            if (e) break;
        }
        locate(food.x,food.y);
        cout << "$";
        return true;
    }
     
    /*** 蛇的前进 ***/
    bool go_ahead()
    {
        node temp;
        bool e=false;
        temp=snake[snake_length-1];
        for (int i=snake_length-1;i>=1;i--)
            snake[i]=snake[i-1];
        snake[0].x+=direct[dir][0];
        snake[0].y+=direct[dir][1];
        locate(snake[1].x,snake[1].y);
        cout << "*";
        /*** 吃到了食物 ***/
        if (snake[0].x==food.x && snake[0].y==food.y)
        {
            snake_length++;
            e=true;
            snake[snake_length-1]=temp;
        }
        /*** 输出此时蛇状态 ***/
        if (!e)
        {
            locate(temp.x,temp.y);
            cout << " ";
        }
        else
            print_food();
        locate(snake[0].x,snake[0].y);
        cout << "@";
        /*** 如果自撞 ***/
        if (!is_correct())
        {
            system("cls");
            cout << "You lose!" << endl << "Length: " << snake_length << endl;
            return false;
        }
        return true;
    }
     
    /*** 主函数 ***/
    int main()
    {
        cout << "--------------------贪吃蛇---------------------" << endl;
        cout << "请注意窗口大小,以免发生错位.建议将窗口调为最大." << endl;
        cout << "先选择难度.请在1-10中输入1个数,1最简单,10则最难" << endl;
        cout << "然后进入游戏画面,以方向键控制方向.祝你游戏愉快!" << endl;
        cout << "-----------------------------------------------" << endl;
        m=25;
        n=40; 
        if (m<10 || n<10 || m>25 || n>40)
        {
            cout << "ERROR" << endl;
            system("pause");
            return 0;
        }
        int hard;
        cin >> hard;
        if (hard<=0 || hard>100)
        {
            cout << "ERROR" << endl;
            system("pause");
            return 0;
        }
        /*** 数据全部初始化,包括蛇长,位置,方向 ***/
        snake_length=5;
        clock_t a,b;
        char ch;
        double hard_len;
        for (int i=0;i<=4;i++)
        {
            snake[i].x=1;
            snake[i].y=5-i;
        }
        dir=3;
        /*** 输出初始地图,蛇与食物 ***/
        system("cls");
        hide();
        print_wall();
        print_food();
        print_snake();
        locate(m+2,0);
        cout << "Now length: ";
        /*** 开始游戏 ***/
        while (1)
        {
            /*** 难度随长度增加而提高 ***/
            hard_len=(double)snake_length/(double) (m*n);
            /*** 调节时间,单位是ms ***/
            a=clock();
            while (1)
            {
                b=clock();
                if (b-a>=(int)(400-30*hard)*(1-sqrt(hard_len))) break;
            }
            /*** 接受键盘输入的上下左右,并以此改变方向 ***/
            if (kbhit())
            {
                ch=getch();
                if (ch==-32)
                {
                    ch=getch();
                    switch(ch)
                    {
                    case 72:
                        if (dir==2 || dir==3)
                            dir=0;
                        break;
                    case 80:
                        if (dir==2 || dir==3)
                            dir=1;
                        break;
                    case 75:
                        if (dir==0 || dir==1)
                            dir=2;
                        break;
                    case 77:
                        if (dir==0 || dir==1)
                            dir=3;
                        break;
                    }
                }
            }
            /*** 前进 ***/
            if (!go_ahead()) break;
            /*** 在最后输出此时长度 ***/
            locate(m+2,12);
            cout << snake_length;
        }
        system("pause");
        return 0;
    }
    

    躲避掉落物(不知道那个**写的,速度快的要4,找不到地方改还没有注释)

    #include<ctime>
    #include<string>
    #include<conio.h>
    #include<cstring>
    #include<cstdlib>
    #include<iomanip>
    #include<iostream>
    #include<algorithm>
    #include <Windows.h>
    #include<queue>
    #include<vector>
    #include<sstream>
    #include<stdio.h>
    #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? true : false)
    using namespace std;
    int x=22,y=70,maxx=0;
    char xy[22][70];
    struct bmb{
    	int xx,yy;
    };
    vector<bmb> bomb;
    int sj=0,num;
    bool gch(char ch){if(getch()==ch)return true;return false;}
    bool chd(char ch){if(KEY_DOWN(ch)){return true;
    }return false;}
    void sx(int sc){
    	string st="Score : ",st1;
    	stringstream ss;
    	ss.clear();
    	ss<<sc;
    	ss>>st1;
    	st+=st1;
    	st+="\n\n";
    	system("cls");
    	for(int i=0;i<x;i++){for(int j=0;j<y;j++){
    		st+=xy[i][j];
    	}st+="\n";
    	}cout<<st;
    }
    bool game(){
    	bomb.clear();
    	int score=0,ball=35,enemy;
    	double spd=1;
    	bool stopped=false;
    	for(int i=0;i<x;i++)memset(xy[i],' ',y);
    	while(!stopped){
    		sj=(sj+1)%200;
    	sx(score);
    	Sleep(10);
    	for(int i=0;i<x;i++)memset(xy[i],' ',y);
    	score++;
    	xy[x-1][ball]='*';
    	if(chd('D')){ball++;cin.sync();
    	}
    	if(chd('A')){ball--;cin.sync();
    	}
    	if(ball>=y)ball=y-1;
    	if(ball<0)ball=0;
    	if(sj%2==1){bomb.push_back((bmb){0,rand()%y});
    	}
    	if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin());
    	}
    	for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='*')stopped=true;xy[bomb[i].xx][bomb[i].yy]='O';
    	}
    	//spd*=1.1;
    	}
    	if(score>maxx)maxx=score;
    	cout<<endl<<endl<<"YOU DIED!"<<endl;
    	cout<<"MAX:"<<maxx<<endl;
    	Sleep(800);
    }
    int main(){
    	char chh;
    srand((unsigned)getpid());
    	while(true){
    	cout<<"R to start--a to left,d to right";
    	fflush(stdin);
    	chh=getch();
    	while(chh!='R'&&chh!='r')chh=getch();
    	if(chh=='r'||chh=='R'){
    		game();
    	}
    	else break;
    	}
    	cout<<"BYE!";
    }
    
    <iframe src="//player.bilibili.com/player.html?aid=594879656&bvid=BV1fq4y1e73k&cid=554799334&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> <iframe src="//player.bilibili.com/player.html?aid=981452080&bvid=BV1N44y1g7Xx&cid=716857658&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> <iframe src="//player.bilibili.com/player.html?aid=769000381&bvid=BV1Fr4y1b7pC&cid=720292184&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> <iframe src="//player.bilibili.com/player.html?aid=66986575&bvid=BV1V4411C7o4&cid=116159075&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>