- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 OpenGL制作简易地图(一)
1.随机生成一张地图,黑方块为禁区,白方块为活动区 2.随机在活动区找两个块,红方块为起点,蓝方块为终点。 3.生成该地图。 4.上CODE. //alex.shoal@gmail.com //latest update:2012-06-19 //sourse code location:..\CB_CODE\GL_TREE #include #include #include
2012-06-18 04:54:12 5734
原创 OpenGL 简单图形程序
1. Tool : codeblock 10.05 2.Code: #include #include #include #define PI 3.1415926535898 GLubyte fly[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x01, 0xC0, 0x06,
2012-06-18 03:06:59 2751
原创 OpenGL部分函数备注
1.glRect void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ); void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ); void glRecti ( GLint x1 ,
2012-06-18 02:27:31 767
原创 敢问路在何方
1.一个数组,只存储0,1,0表示可以通过,1表示障碍物,不能通过,求数组任意为0的位置到另一个为0的的位置的行走路径,行走方向为上下左右。 2.
2012-06-17 23:12:16 4449
原创 如何随机产生长整型
GCC中一些函数可以帮忙产生整型,不过都是int. 19.8.1 ISO C Random Number Functions This section describes the random number functions that are part of the ISO C standard. To use these facilities, you should includ
2012-06-17 21:43:10 1093
原创 比较冒泡排序和快速排序的性能
1.取十组随机数,每组共200000个数,分别用冒泡排序和快速排序法排序,分别记录所化时间。 2.程序 #include #include #include #include //#include FILE *fpt; //* file point of targe void exchange(int *a,int *b) { int t=*a; *a=*b;
2012-06-17 20:59:49 2728
转载 GCC得到系统时间的两种方法
源自:http://hi.baidu.com/wuming_onesky/blog/item/382eae0998bf75246a60fb6b.html #include #include void main() { time_t t; t=time(NULL); printf("%s\n",ctime(&t)); struct tm *n=localtim
2012-06-17 20:17:25 2655
basic use of pspice via ORCAD caputre
2011-07-30
Linux.Security.Cookbook.chm
2009-05-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人