自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (3)
  • 收藏
  • 关注

原创 2020-10-28

英雄联盟手游安装使用方法 方案一 1.百度下载ourplay 2.打开ourplay,购买一个google账号 3.下载英雄联盟手游 方案二(ourplay不支持64位机器时,使用该方案) 1.百度下载ourplay 2.打开ourplay,购买一个google账号 3.应用市场,下载“谷歌安装器”,打开并安装google play套件 4.下载迅游网游加速器,https://www.xunyou.mobi/app.html 5.下载英雄联盟手游,https://www.ldmnq.com/app/459

2020-10-28 11:10:26 136

QT 多线程服务器客户端通信程序

最近接了一个单子,QT写的多线程Socket服务器+多客户端,虽然用qt做socket服务器不太合适,但是毕竟客户要求就做了,本以为很简单,后来才发现QT的QTcpServer真的不太好用,参考了好多网上的教程才弄明白,顺便记录一下,有需要的可以联系我[email protected]

2019-10-28

别踩白块儿

在STM32开发板上编写的游戏,硬件接口,可跟据自己开发板更改

2015-10-13

贪吃蛇源代码

一个贪吃蛇的源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <conio.h> struct Node { int x; int y; struct Node *pre; struct Node *next; }; struct Food { int x; int y; char c; }; void main() { int a[15][15]={0}; int i,j,t,flag=0; char c='d',c1='d'; struct Food food={5,8,'A'}; int gameover=0; struct Node *head,*p,*rear,*pt; head=(struct Node *)malloc(sizeof(struct Node)); head->x=5; head->y=8; head->pre=NULL; head->next=NULL; rear=head; srand((unsigned)time(NULL)); while(1) { if(food.x==head->x && food.y==head->y) { p=(struct Node *)malloc(sizeof(struct Node)); pt=head; while(pt->next!=NULL) pt=pt->next ; p->pre= pt; pt->next = p; p->next=NULL; rear=p; food.x=rand(); food.y=rand(); food.c=65+rand()%26; flag=1; t=0; while(flag==1) { if(t>5) break; flag=0; pt=head; while(pt!=NULL) { if(food.x==pt->x && food.y==pt->y) { flag=1; food.x=rand(); food.y=rand(); break; } pt=pt->next; } t++; } if(t>5) { if(c=='d') { food.x=head->x+1; food.y=head->y; if(food.x>=15) food.x-=15; } else if(c=='a') { food.x=head->x-1; food.y=head->y; if(food.x<0) food.x+=15; } else if(c=='w') { food.x=head->x; food.y=head->y+1; if(food.y>=15) food.y-=15; } else if(c=='s') { food.x=head->x; food.y=head->y-1; if(food.y<0) food.y+=15; } } } if(kbhit()) { c1=getch(); if(c1==27) break; if(c!='d' && c1=='a') c=c1; else if(c!='a' && c1=='d') c=c1; else if(c!='w' && c1=='s') c=c1; else if(c!='s' && c1=='w') c=c1; } pt=rear; while(pt!=head ) { pt->x=pt->pre->x; pt->y=pt->pre->y; pt=pt->pre; } if(c=='d') { head->y+=1; if(head->y>=15) head->y-=15; } else if(c=='a') { head->y-=1; if(head->y<0) head->y+=15; } else if(c=='w') { head->x-=1; if(head->x<0) head->x+=15; } else if(c=='s') { head->x+=1; if(head->x>=15) head->x-=15; } pt=head->next; while(pt!=NULL) { if(head->x==pt->x && head->y==pt->y) { gameover=1; break; } pt=pt->next ; } if(gameover==1) break; system("cls"); printf(" ───────────────\n"); for(i=0;i<15;i++) { printf("│"); for(j=0;j<15;j++) { flag=0; pt=head; while(pt!=NULL) { if(i==pt->x && j==pt->y) { if(pt==head) printf("■"); else printf("□"); flag=1; break; } pt=pt->next; } if(flag==0) { if(i==food.x && j==food.y) { putchar(food.c); putchar(food.c); continue; } printf(" "); } } printf("│"); putchar('\n'); } printf(" ───────────────\n"); _sleep(200); } if(gameover==1) puts("game over!\n"); getch(); }

2015-01-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除