- 博客(20)
- 资源 (8)
- 收藏
- 关注
原创 DA系列开发
1、数据层和应用层不符合高内聚低耦合的规则导致项目出现依赖循环引用。Form依赖comprocess文件中的BuildFrame将数据封装放入发送队列SendList中;ReceiveDataProcess接收数据后依赖Form文件更新UI;comprocess则依赖ReceiveDataProcess处理接收到的数据并利用Form更新。可以考虑修改的地方是comprocess中的Buil
2014-01-25 16:26:30 1013
原创 变幻线
// 变幻线.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "easyx.h"#include "conio.h"#include "time.h"#define MAXPIXEL 10void main( ){ //初始化图形窗口 initg
2013-07-22 01:59:57 1041
原创 围棋棋盘
// 棋盘.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "easyx.h"#include "conio.h"void main( ){ int i,j; //初始化图形窗口 initgraph(548,548); //设置背景色为浅灰色
2013-07-22 00:08:51 1560
转载 在格子上随机填入不重复的数字
屏幕上有 16x8 的方格,按随机顺序在将 1~128 的数字写到每个格子上。涉及到标记,可以应用在找配对等小游戏上。// 在格子上随机写数字.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "easyx.h"#include "stdio.h"#incl
2013-07-21 17:39:16 1942
原创 反弹球
运动中的球,碰撞墙壁后会45角反弹。// 反弹球.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "graphics.h"#include "conio.h"void main( ){ int x=5;//x方向上的移动距离,正负表示方向 int
2013-07-21 12:27:21 1228
原创 键盘、鼠标控制小球
题目:按下控制键时小球会惯性运动,通过鼠标来停住小球。待解决问题:GetMouseMsg调用时会出现阻塞,在鼠标不动的情况下,小球有时会无缘无故停住。// 鼠标控制.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "easyx.h"#include "c
2013-07-21 11:53:57 2601
原创 在不破坏背景的情况下实现动态文字
一步一个脚印,先布置背景,再现实动态文字输出,再解决输出时破坏背景的问题,再优化代码。利用保护现场输出文本再恢复现场的方式实现以及代码的封装,值得在其他程序中尝试。// 实现动态文字.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "easyx.h"#i
2013-07-21 09:30:38 1178
原创 鼠标画选顶点画三角形
题目:画一个填充的三角形,要用鼠标点选三角形的三个顶点。提示:可以用 fillpoly 函数画多边形。// 三角形.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "graphics.h"#include "conio.h"void main( ){
2013-07-21 01:38:38 2266
原创 格子涂色
题目:2. 写一个“格子涂色”的游戏,要求:屏幕上有16x8的格子,屏幕底部有类似画笔中的选色区(随便放上一些常用的颜色),鼠标点击选择区的颜色后,就作为当前颜色,然后再点屏幕上的格子,就可以用刚才的颜色填涂相应格子。 // 鼠标画三角形.cpp : Defines the entry point for the console application.//#include "std
2013-07-21 00:39:33 5358
原创 动态相册(未完成)
看C的图形编程时构思的动态相册,有很多部分不知道该怎么去完成,希望你们能给我点建议。1、创意阶段利用二维星空的部分代码制作动态相册,循环展示,当鼠标有动作时做出响应2、规划阶段利用graphics.h 包含的图形库实现创意,暂定为二维展示3、周边准备需要抒情的背景音乐以及简约的背景图,点击鼠标发出的声音4、细部准备初始化Init函数,移动相册Move函数,鼠标动作响
2013-07-20 10:20:10 933
原创 C游戏编程入门第一讲心得
下面是作者对游戏设计步骤的总结:(1)创意阶段你不仅仅需要一定的编程能力,创意这方面也是必须的,至少你对自己的设计有模糊的构思,设计出游戏的完整过程并画出流程图,将游戏分解为若干层次。(2)规划阶段使用的图形模式,确定图形、动画的复杂程度(二维还是三维),考虑使用游戏函数库中的哪些函数来实现。(3)周边准备制作人物、环境的图像、声音文件,以及相关的数据库文件,例如用Foxb
2013-07-18 21:44:51 2221
原创 删除相同的结点
题目:有两个链表a和b,设结点中包含学号和姓名。从a链表中删去与b链表中有相同学号的那些结点。// 删除相同的结点.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "stdio.h"#define NULL 0struct student { int
2013-07-12 21:45:12 749
原创 日期计算第几天
定义一个结构体变量(包括年月日)。计算该日在本年中是第几天?注意闰年问题。// 日期计算第几天.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "stdio.h"struct date{ int years; int months; int day
2013-07-12 11:55:34 1878
原创 循环链表题目
题目:13个人围成一圈,从第一个人开始顺序报号1、2、3。凡报到3者退出圈子,找出最后留在圈子中的原来的序号。我们也可以扩展为n个人围圈的问题,求最后剩下者的序号。// 循环链表.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "stdio.h"#inc
2013-07-12 04:20:41 967
原创 链表合并
题目:已知a,b两个链表,每个链表中的结点包括学号、成绩。要求把两个链表合并,按学号升序排列。// 链表和并.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "stdio.h"#define SIZE 2#define NULL 0struct stud
2013-07-12 02:27:38 816
原创 输入学生信息并存储新文件
// 学生成绩及平均数.cpp : Defines the entry point for the console application.////------------------------静态单向链表示例--------------------------////------------------------Coded by Mr.Zeng--------------------
2013-07-12 00:02:57 905
原创 文件排序合并
// 文件合并排序输出.cpp : Defines the entry point for the console application.////// ╭︿︿︿╮ // {/ o o /} // ( (oo) ) // ︶ ︶︶ #include "stdafx.h"#include "string.h"#include "stdio.h"
2013-07-11 16:01:37 660
原创 静态单向链表学习日记01
// 3.cpp : Defines the entry point for the console application.////------------------------静态单向链表示例--------------------------////------------------------Coded by Mr.Zeng--------------------------//
2013-07-09 22:23:07 847
BeginningDirectX11Code
2012-07-29
C++大学教程
2012-07-27
《iPhone开发基础教程》
2012-07-26
数据结构算法与应用-C++语言描述
2012-07-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人