自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

原创 《C和指针》笔记

(一)良好的编程风格      1.空行用于分隔不同的逻辑代码段      2.在括号和表达式之间留下空格,使表达式看上去更加突出      3.在绝大多数操作符之间留下空格      4.适当的缩进      5.绝大部分的注释都是成块出现的,视觉上更加突出      6.在函数定义中,返回类型单独出现一行,函数名字则在下一行起始处,这样更容易找到函数名

2014-06-04 23:28:38 523

原创 Linux GTK 打砖块 最新版

#include #include #include #include // 游戏区域的定义 #define GAME_WIDTH 500 #define GAME_LENGTH 600 struct ball { int x, y; // 小球的坐标(圆心) int speed_x, speed_y; // 小球的速度 int r

2014-05-27 15:09:38 928 2

原创 Linux GTK2.0 打砖块

#include #include #include // 游戏区域的定义 #define GAME_WIDTH 500 #define GAME_LENGTH 600 struct Ball { int x, y; // 小球的坐标(圆心) int speed_x, speed_y; // 小球的速度 int radius;

2014-05-12 16:20:35 764

原创 Linux C 打砖块

#include   #include   #include   #include   #include "header.h" void init(); void ball_move(); struct Ball ball;    // 小球 struct Baffle baffle;   // 挡板 int matrix[5][15];        // 记录

2014-05-04 20:38:02 883 1

原创 Linux 游戏

#include #include #include #include void init(); void wrap_up(); void ball_move(); struct Ball ball; // 小球 struct Baffle baffle; // 挡板 int matrix[5][15]; // 记录砖块区域信息的矩阵 int is_lose

2014-05-03 19:59:37 871 1

原创 Linux C 弹球游戏

#include #include #include #include void init(); void wrap_up(); void ball_move(); struct Ball ball; // 小球 struct Baffle baffle; // 挡板 int matrix[5][15]; // 记录砖块区域信息的矩阵 int main()

2014-05-03 18:28:03 1871

原创 Linux

#include #include #define BLANK ' ' // yongyucachu #define SYMBOL_BALL 'O' #define TOP_ROW 0 #define BOT_ROW LINES #define LEFT_EDGE 0 #define RIGHT_EDGE COLS; struct Ball { int x_poi, y_poi,

2014-04-28 22:08:52 554

转载 操作系统第三次实验

#include #include #include #include #include #define M 10 // 缓冲区容量为10 void *productor(void *ptr); // 消费者线程 void *customer(void *ptr); // 生产者线程 void produce(); // 生产过程 void consume();

2014-04-24 22:06:30 645

原创 操作系统第一次实验

#include #include /* 实现了cat的查看文件和合并文件的功能 */ void file_copy(FILE *inFile, FILE *outFile) { int c=0; while((c=getc(inFile)) != EOF) putc(c, outFile); } int main(int argc, char

2014-04-13 09:45:58 597

空空如也

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

TA关注的人

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