随笔分类 -  C语言小游戏

C语言小游戏系列—恶搞关机软件,加强版
摘要:#include int main(){ system("shutdown -s -t 100"); while(1) { SetCursorPos(0,0); //鼠标指针到0,0点了,也就是左上角 Sleep(1);... 阅读全文
posted @ 2018-05-13 15:54 zitian246 阅读(148) 评论(0) 推荐(0)
C语言小游戏系列—恶搞关机软件,亲测QAQ
摘要:#include #include #include #include int main(){ char write[100]; system( "shutdown -s -t 60");th: printf( "快说你爱凤姐!不然就关机!\n" )... 阅读全文
posted @ 2018-05-13 15:51 zitian246 阅读(173) 评论(0) 推荐(0)
C语言小游戏系列--迷宫OpenGL
摘要:#include // Must have for Windows platform builds//#include "gl\glee.h" // OpenGL Extension ¡°autoloader¡±#include // Microsoft Open... 阅读全文
posted @ 2018-04-24 17:20 zitian246 阅读(305) 评论(0) 推荐(0)
C语言小游戏系列--猜数字(亲测,简单易懂)
摘要:#include#include#include#includeusing namespace std;int main(){ int n; int number; srand((unsigned)time(NULL)); //产生随机数。 n... 阅读全文
posted @ 2018-04-18 20:38 zitian246 阅读(598) 评论(0) 推荐(0)
C语言小游戏系列--简易五子棋(亲测可用)
摘要:#include #include #include #include #define MAXIMUS 15 //定义棋盘大小int p[MAXIMUS][MAXIMUS];//存储对局信息char buff[MAXIMUS*2+1][MAXIMUS*4+3];//输... 阅读全文
posted @ 2018-04-18 20:31 zitian246 阅读(600) 评论(0) 推荐(0)