<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[versuna的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/versuna</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; versuna]]></copyright><item><title><![CDATA[关于测试的思考]]></title><link>https://blog.csdn.net/versuna/article/details/78720860</link><guid>https://blog.csdn.net/versuna/article/details/78720860</guid><author>versuna</author><pubDate>Tue, 05 Dec 2017 15:25:19 +0800</pubDate><description><![CDATA[关于测试的思考]]></description><category></category></item><item><title><![CDATA[编译型语言和解释型语言]]></title><link>https://blog.csdn.net/versuna/article/details/8955773</link><guid>https://blog.csdn.net/versuna/article/details/8955773</guid><author>versuna</author><pubDate>Tue, 21 May 2013 15:45:06 +0800</pubDate><description><![CDATA[计算机不能直接理解高级语言，只能直接理解机器语言，所以必须要把高级语言翻译成机器语言，计算机才能执行高级语言编写的程序。翻译的方式有两种，一个是编译，一个是解释。
       1).编译型语言写的程序执行之前，需要一个专门的编译过程，把程序编译成为机器语言的文件，比如exe文件，以后要运行的话就不用重新翻译了，直接使用编译的结果就行了（exe文件），因为翻译只做了一次，运行时不需要翻译，所以编]]></description><category></category></item><item><title><![CDATA[字节对齐]]></title><link>https://blog.csdn.net/versuna/article/details/8890367</link><guid>https://blog.csdn.net/versuna/article/details/8890367</guid><author>versuna</author><pubDate>Mon, 06 May 2013 14:25:25 +0800</pubDate><description><![CDATA[原帖：  http://blog.csdn.net/21aspnet/article/details/6729724
 
文章最后本人做了一幅图，一看就明白了，这个问题网上讲的不少，但是都没有把问题说透。
　　一、概念 
　　 
　　 对齐跟数据在内存中的位置有关。如果一个变量的内存地址正好位于它长度的整数倍，他就被称做自然对齐。比如在32位cpu下，假设一个整型变量的地址为0x0000]]></description><category></category></item><item><title><![CDATA[C++ 检测内存泄露]]></title><link>https://blog.csdn.net/versuna/article/details/8879484</link><guid>https://blog.csdn.net/versuna/article/details/8879484</guid><author>versuna</author><pubDate>Fri, 03 May 2013 11:42:41 +0800</pubDate><description><![CDATA[2011-08-01 14:10 
C++ 检测内存泄露


  C++程序的复杂性很大一部分在于他的内存管理，没有C#那样的垃圾回收机制，内存管理对初学者来说很困难。经常会出现内存泄露的情况。那么我们写程序如何避免内存泄露呢？首先我们需要知道程序有没有内存泄露，然后定位到底是哪行代码出现内存泄露了，这样才能将其修复。
本文描述了如何检测内存泄露。最主要的是纯C，C++的程序如何检测内存]]></description><category></category></item><item><title><![CDATA[半边数据结构的相关网站]]></title><link>https://blog.csdn.net/versuna/article/details/8692231</link><guid>https://blog.csdn.net/versuna/article/details/8692231</guid><author>versuna</author><pubDate>Tue, 19 Mar 2013 16:09:18 +0800</pubDate><description><![CDATA[http://www.flipcode.com/archives/The_Half-Edge_Data_Structure.shtml]]></description><category></category></item><item><title><![CDATA[【读书笔记】translate和rotate]]></title><link>https://blog.csdn.net/versuna/article/details/8645823</link><guid>https://blog.csdn.net/versuna/article/details/8645823</guid><author>versuna</author><pubDate>Thu, 07 Mar 2013 14:55:59 +0800</pubDate><description><![CDATA[开启深度测试
void RenderScene()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
	gluLookAt(0, 300, 0, 0, 1, 0, 0, 0, -1);

	glTranslatef(100, 0, 0.0)]]></description><category></category></item><item><title><![CDATA[【读书笔记】gluLookAt和glOrtho，gluPerspective]]></title><link>https://blog.csdn.net/versuna/article/details/8639381</link><guid>https://blog.csdn.net/versuna/article/details/8639381</guid><author>versuna</author><pubDate>Tue, 05 Mar 2013 20:08:55 +0800</pubDate><description><![CDATA[void gluLookAt (   eyex,   eyey,   eyez,   centerx,   centery,   centerz,   upx,   upy,  upz);
void glOrtho ( left,  right,  bottom,  top,  zNear,  zFar);
 
正投影的视景体是这么定义的：
    仅以eye，center和up为参考点的]]></description><category></category></item><item><title><![CDATA[【读书笔记】OpenGL中的矩阵运算]]></title><link>https://blog.csdn.net/versuna/article/details/8635706</link><guid>https://blog.csdn.net/versuna/article/details/8635706</guid><author>versuna</author><pubDate>Mon, 04 Mar 2013 22:18:25 +0800</pubDate><description><![CDATA[最开始强调在GL中是列优先储存！这说明了无论是矩阵还是向量，都是按列存的！
       在明确了GL是列储存方式后，可以考虑计算了。（相关坐标系参见 
GL基础知识 ）
1、模型变换
       例子：   glLoadIdentity();   glTranslatef(50, 0, 0);    glVertexf(1, 2, 3);]]></description><category></category></item><item><title><![CDATA[OpenGL基础知识]]></title><link>https://blog.csdn.net/versuna/article/details/8635591</link><guid>https://blog.csdn.net/versuna/article/details/8635591</guid><author>versuna</author><pubDate>Mon, 04 Mar 2013 21:41:40 +0800</pubDate><description><![CDATA[原帖http://blog.csdn.net/sunqunsunqun/article/details/7182546
 
1.相机的位置就是视点。

2.OpenGL绕坐标轴旋转一个正的角度，就是从坐标轴的正半轴看向负半轴，逆时针旋转。

3.默认情况下，OpenGL视点的初始位置就是世界坐标系的原点，默认情况下：
    a.视点的初始位置位于世界坐标系的原点；
    b.O]]></description><category></category></item><item><title><![CDATA[OpenGL中的坐标系]]></title><link>https://blog.csdn.net/versuna/article/details/8635551</link><guid>https://blog.csdn.net/versuna/article/details/8635551</guid><author>versuna</author><pubDate>Mon, 04 Mar 2013 21:29:06 +0800</pubDate><description><![CDATA[视图模型变换过程就是一个将顶点坐标从世界坐标系变换到视觉坐标系的过程。这里很重要的是对两个坐标系的认识。
世界坐标系，也称为全局坐标系。它是一个右手坐标系，可以认为该坐标系是固定不变的，在初始态下，其x轴为沿屏幕水平向右，y轴为沿屏幕垂直向上，z轴则为垂直屏幕面向外指向用户，当然，如果在程序中对视点进行了转换，就不能再认为是这样的了。
视觉坐标系，也称为局部坐标系。它是一个左手坐标系，该坐标系]]></description><category></category></item><item><title><![CDATA[记录的一些缩写，名词]]></title><link>https://blog.csdn.net/versuna/article/details/8635371</link><guid>https://blog.csdn.net/versuna/article/details/8635371</guid><author>versuna</author><pubDate>Mon, 04 Mar 2013 20:36:10 +0800</pubDate><description><![CDATA[1、GDI = Graphics Device Interface 含义是图形设备接口，它的主要任务是负责系统与绘图程序之间的信息交换，处理所有Windows程序的图形输出。  （具体google or BD） 
 2、Debug，调试程序，为程序除错。]]></description><category></category></item><item><title><![CDATA[【读书笔记】glClearColor和glClear的位置，glutReshapeFunc函数的调用]]></title><link>https://blog.csdn.net/versuna/article/details/8630310</link><guid>https://blog.csdn.net/versuna/article/details/8630310</guid><author>versuna</author><pubDate>Sun, 03 Mar 2013 01:06:57 +0800</pubDate><description><![CDATA[void init(void)
{
	glClearColor(0.0,0.0,1.0,1.0);
}

void RenderScene(void)
{
	glClear( GL_COLOR_BUFFER_BIT );
	glColor3f(1.0, 0.0, 0.0);
	glBegin(GL_LINES);
		glVertex3f( 0.0, 0.0, 0.0 );
		glVertex3]]></description><category></category></item><item><title><![CDATA[【读书笔记】OpenGL中视口等坐标变换]]></title><link>https://blog.csdn.net/versuna/article/details/8627516</link><guid>https://blog.csdn.net/versuna/article/details/8627516</guid><author>versuna</author><pubDate>Fri, 01 Mar 2013 20:05:57 +0800</pubDate><description><![CDATA[原帖： http://www.cnblogs.com/irvinow/archive/2009/11/20/1606496.html
创建OpenGL模型过程：

OPENGL坐标变换很有特点，为了简单描述先定义2个坐标系：
（1）世界坐标系：
无论如何变换，世界坐标系都不动，以屏幕中心为原点(0, 0, 0)，你面对屏幕，你的右边是x正轴，上面是y正轴，屏幕指向你的为z正轴。
（2）]]></description><category></category></item><item><title><![CDATA[【读书笔记】操作符]]></title><link>https://blog.csdn.net/versuna/article/details/8625761</link><guid>https://blog.csdn.net/versuna/article/details/8625761</guid><author>versuna</author><pubDate>Fri, 01 Mar 2013 13:35:05 +0800</pubDate><description><![CDATA[1、自增自减
	int i=0, j;
	j = ++i;
	cout<<i<<j<<endl;  //输出11
	i=0; 
	j = i++;
	cout
       建议，只有在必要时才使用i++。  这里注意++ or --的优先级高于=
2、条件操作符 c++中唯一的三元操作符
       cond ? exp1 : exp2    解释：首先计算cond的值，if 非零(t]]></description><category></category></item><item><title><![CDATA[【读书笔记】数组与指针]]></title><link>https://blog.csdn.net/versuna/article/details/8625585</link><guid>https://blog.csdn.net/versuna/article/details/8625585</guid><author>versuna</author><pubDate>Fri, 01 Mar 2013 13:00:36 +0800</pubDate><description><![CDATA[int a[5];        数组名a代表数组中首元素的地址。即 a代表&a[0]。因此int *p;    p=a 等价于 p=&a[0]
  int a[3][4];    二维数组a看做是由3个一维数组组成的。a仍代表二维数组首元素的地址，但是现在的首元素不是简单的整型，而是由4个整型元素组成的一维数组，因此a代表的是首行(即第0行)的地址，a+1代表第1行的地址。近一步，a[0]是一]]></description><category></category></item><item><title><![CDATA[【读书笔记】一些名词注记--OpenGL]]></title><link>https://blog.csdn.net/versuna/article/details/8627175</link><guid>https://blog.csdn.net/versuna/article/details/8627175</guid><author>versuna</author><pubDate>Fri, 01 Mar 2013 09:44:36 +0800</pubDate><description><![CDATA[1、实时（real-time）：广泛含义是指计算机能够即时的对输入经行处理。应用到计算机图形中意味着计算机对诸如操作杆活动，击键等输入事件直接作出响应，产生动画或图像序列。
2、3个维度：宽度，高度，深度。 3D = 2D + 透视。
3、GLUT：OpenGL utility toolkit 。  GLU：OpenGL utility library。
4、单缓冲窗口：所有的绘图命令都是在]]></description><category></category></item><item><title><![CDATA[【读书笔记】std::string的基本操作 与字符串数组的区别]]></title><link>https://blog.csdn.net/versuna/article/details/8623820</link><guid>https://blog.csdn.net/versuna/article/details/8623820</guid><author>versuna</author><pubDate>Thu, 28 Feb 2013 21:50:54 +0800</pubDate><description><![CDATA[从标准输入读取string：1、读取并忽略开头所有的空白字符（如空格，换行符，制表符）。
                                      2、读取字符直至再次遇到空白字符，读取终止
例子：cin>>s;    输入“    Hello  world!”  则s是Hello，且不含任何空格。
           cin>>s1>>s2;       
输入“]]></description><category></category></item><item><title><![CDATA[【读书笔记】extern，const的基本用法]]></title><link>https://blog.csdn.net/versuna/article/details/8623667</link><guid>https://blog.csdn.net/versuna/article/details/8623667</guid><author>versuna</author><pubDate>Thu, 28 Feb 2013 20:32:09 +0800</pubDate><description><![CDATA[extern  声明 ( extern int a; )，不分配内存空间。但是 (extern int a=3; )这时是定义。
注意：定义仅有一次。
  file1.cpp
#include 
using namespace std;

int A(0);	//definition
void main()
{
	void sa(int *);
	int b=3;
	sa(&b);
	cou]]></description><category></category></item><item><title><![CDATA[C/C++基本数据类型]]></title><link>https://blog.csdn.net/versuna/article/details/8623527</link><guid>https://blog.csdn.net/versuna/article/details/8623527</guid><author>versuna</author><pubDate>Thu, 28 Feb 2013 19:45:33 +0800</pubDate><description><![CDATA[原帖 http://www.programfan.com/blog/article.asp?id=33807
 
学了C然后C++，然后MFC/Windows,然后是C#,其中数据类型很多，由基本类型衍生的typedef类型也N多。熟知基本数据类型是我们正确表达实际问题中各种数据的前提，因此我分类总结了一下C/C++/Windows
 /C#基本数据类型，以便日后查阅。]]></description><category></category></item><item><title><![CDATA[dgesvd函数]]></title><link>https://blog.csdn.net/versuna/article/details/8246377</link><guid>https://blog.csdn.net/versuna/article/details/8246377</guid><author>versuna</author><pubDate>Sat, 01 Dec 2012 14:20:40 +0800</pubDate><description><![CDATA[用到svd分解，老师用的是 svdcmp(float **a, int m, int n, float w[], float **v) 函数。这函数的解释是Given a matrix a[1..m][1..n], this routine computes its singular value decomposition,
 A = U.W.VT.  The matrix U replaces]]></description><category></category></item></channel></rss>