上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页
摘要: 例如在c++中,初始化一个int型的变量:-------------------------------int vt = 0;执行开始cpu:请内存控制器查询是否足够4个字节;内存控制器:足够;cpu:请分配4个字节的空间,并返回内存地址;内存:空间已经分配,返回内存地址;cpu:找到这个内存地址,复制其内容到cpu缓存;cpu:给这个地址空间赋值(0)执行完毕。-------------------------------int vt(0);执行开始cpu:请内存控制器查询是否足够4个字节;内存控制器:足够;cpu:请分配4个字节的空间,并赋值0,返回内存地址;内存:空间已经分配,返回内存地 阅读全文
posted @ 2011-09-01 09:42 vily_雷 阅读(189) 评论(0) 推荐(0)
摘要: c++多重继承中,因为多个父类可能具有相同的数据域,就可能会出现多重同名的数据域共存的问题。这种共存的问题除了内存使用的浪费还有可能造成程序出现的不可预测的问题(因为访问的数据可能是同名不同域的)。要解决这个问题,就需要让多重继承的的基类用virtual继承更上一层的类正确的做法如下:class A{}class A_0:virtual public A{}class A_1:virtual public A{}class B:public A_0,public A_1{}错误的写法:class A{}class A_0:public A{}class A_1:public A{}class 阅读全文
posted @ 2011-08-26 10:15 vily_雷 阅读(273) 评论(0) 推荐(0)
摘要: 1.http://hi.baidu.com/%B3%A3%D1%C5%C3%F4/blog/item/2cc4c7c6f55ff1d7d100601e.html2.http://www-cs-students.stanford.edu/~amitp/gameprog.html#Paths3.在A*寻路中使用二叉堆http://www.vckbase.com/document/viewdoc/?id=1452 阅读全文
posted @ 2011-08-18 14:08 vily_雷 阅读(259) 评论(0) 推荐(0)
摘要: 1.opengl Working with 3D modelshttp://www.3dcodingtutorial.com/opengl/Working-with-3D-models/2.opengl resources FAQs:http://www.opengl.org/resources/faq/technical/texture.htm3.stereoOpenGL(红蓝立体)http://www.gali-3d.com/archive/articles/StereoOpenGL/StereoscopicOpenGLTutorial.php4.opengl 选择与拾取:http://w 阅读全文
posted @ 2011-08-09 11:08 vily_雷 阅读(251) 评论(0) 推荐(0)
摘要: atof(将字符串转换成浮点型数)相关函数 atoi,atol,strtod,strtol,strtoul表头文件 #include <stdlib.h>定义函数 double atof(const char *nptr);函数说明 atof()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负符号才开始做转换,而再遇到非数字或字符串结束时('')才结束转换,并将结果返回。参数nptr字符串可包含正负号、小数点或E(e)来表示指数部分,如123.456或123e-2。返回值 返回转换后的浮点型数。附加说明 atof()与使用strtod(nptr,(c 阅读全文
posted @ 2011-08-09 10:38 vily_雷 阅读(308) 评论(0) 推荐(0)
摘要: 1.he Character Animation (1998)FAQhttp://www.flipcode.com/documents/charfaq.html#Q52.opengl simple draw samplehttp://math.ucsd.edu/~sbuss/MathCG/OpenGLsoft/3.opengl Glee libraryhttp://www.opengl.org/sdk/libs/GLee/http://elf-stone.com/glee.php4.opengl lib 3dhttp://home.gna.org/cal3d/5.骨骼动画bones-anima 阅读全文
posted @ 2011-08-04 23:41 vily_雷 阅读(348) 评论(0) 推荐(0)
摘要: 1.c++接口和实现的分离http://blog.csdn.net/jszj/article/details/39152712.c中 <math> 函数: Abs 已重载。返回指定数字的绝对值。Acos 返回余弦值为指定数字的角度。Asin 返回正弦值为指定数字的角度。Atan 返回正切值为指定数字的角度。Atan2 返回正切值为两个指定数字的商的角度。 BigMul 生成两个32位数字的完整乘积。Ceiling 已重载。返回大于或等于指定数字的最小整数。Cos 返回指定角度的余弦值。Cosh 返回指定角度的双曲余弦值。 DivRem 已重载。计算两个数字的商,并在输出参数中返回余 阅读全文
posted @ 2011-08-04 11:27 vily_雷 阅读(219) 评论(0) 推荐(0)
摘要: @window.eventdef on_draw(): pass这段代码,中 @ 所在的行是什么的干活?等价于def on_draw(): passon_draw=window.event(on_draw)这是装饰器的一个例子。 阅读全文
posted @ 2011-08-01 17:02 vily_雷 阅读(156) 评论(0) 推荐(0)
摘要: 1.http://www.pyglet.org/http://www.pyglet.org/doc/api/index.htmlhttp://nullege.com/codes/show/src@p@y@pyflipcard-HEAD@libs@draw.py/21/pyglet.graphics.draw/python动画效果http://codeboje.de/Effect-Animation-with-Pyglet/2.python 的二进制数据操作http://construct.wikispaces.com/ 阅读全文
posted @ 2011-08-01 15:55 vily_雷 阅读(212) 评论(0) 推荐(0)
摘要: 1$tarzxvfopenssl-1.0.0d.tar.gz-C/opt/2$./config--prefix=/usr/local/openssl-1.0.0dsharedzlib-dynamicenable-camellia--prefix=/usr/local/openssl-1.0.0d(一般的linux系统用命令为:./Configure)3$./config-t4$makedepend5$make6$maketest7$makeinstall/********************************************************************/附 阅读全文
posted @ 2011-07-25 11:11 vily_雷 阅读(2673) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页