原创 Ubuntu下純代碼編寫簡易貪喫蛇遊戲(第二次做)

源文件名snake2.c 運行效果圖如下 源代碼如下: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> #inc

原创 Ubuntu下C語言實現貪喫蛇遊戲

源文件名:snake.c 編譯:gcc snake.c 運行:./a.out 運行效果界面在代碼最下方 源代碼如下: #include <stdio.h> #include <string.h> #include <stdl

原创 Ubuntu下C語言實現貪吃蛇遊戲

源文件名:snake.c 編譯:gcc snake.c 運行:./a.out 運行效果界面在代碼最下方 源代碼如下: #include <stdio.h> #include <string.h> #include <stdl

原创 XP系統下用VC實現俄羅斯方塊遊戲

源文件名爲t1.cpp 效果圖如下所示 源代碼如下: #include <iostream> #include<windows.h> #include <vector> #include <mmsystem.h> #include

原创 基於Ubuntu下的QT製作黑白棋遊戲

本文以begin爲第一跳轉界面 第二跳轉界面(heibai)爲People to People(人人對戰) 第三跳轉界面(heibai2)爲People to Computer(人機對戰) 三張效果圖如下: 各個頁面源代碼如下:

原创 kl25開發板基於Kinetis Design Studio 3.0.0 IDE軟件下的七色燈

軟件配置成功以後,main.c裏面添加源代碼如下: main函數裏面定義 void delay(int n) {int i = 0;for(i = 0;i<n;i++); } 自己編輯一個死循環 while(1) { LDD_T

原创 Ubuntu下表白程序

源文件名爲love.c 運行效果圖如下 源代碼如下: l #include <stdio.h> #include<unistd.h> #include <math.h> #include <stdlib.h> #defin

原创 Ubuntu下用shell腳本實現俄羅斯方塊遊戲

源文件名爲 1.sh 運行效果圖如下 源代碼如下 nihao #!/bin/bash #APP declaration APP_NAME="${0##*[\\/]}" APP_VERSION="1.0"   #顏色定義 cRe

原创 Ubuntu下純代碼編寫簡易貪吃蛇遊戲(第二次做)

源文件名snake2.c 運行效果圖如下 源代碼如下: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> #inc