- 博客(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
空空如也
关于AllJoyn的问题,怎么在Visual Studio上用
2014-01-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人