IT民工
文章平均质量分 73
bananazhl
这个作者很懒,什么都没留下…
展开
-
一个打印的小经验
使用GDI+进行绘制时,有一个输出图像的函数:The DrawImage method draws an image at a specified location.SyntaxStatus DrawImage( Image *image, REAL x, REAL y);Parametersimage [in]原创 2009-01-15 16:06:00 · 253 阅读 · 0 评论 -
GDIPlus的Pen的一个小Bug
首先是MSDN里面Pen的SetTransform Method的说明Pen::SetTransform MethodThe SetTransform method sets the world transformation of this Pen object.SyntaxStatus SetTransform( const Matrix *matr原创 2009-01-15 16:08:00 · 590 阅读 · 0 评论 -
字节对齐问题----一个很古老的基础问题
zz from http://www.yuanma.org/data/2006/0723/article_1213.htm一.什么是字节对齐,为什么要对齐? 现代计算机中内存空间都是按照byte划分的,从理论上讲似乎对任何类型的变量的访问可以从任何地址开始,但实际情况是在访问特定类型变量的时候经常在特定的内存地址访问,这就需要各种类型数据按照一定的规则在空间上排列,而不是顺序的转载 2009-03-18 11:27:00 · 291 阅读 · 0 评论 -
C++虚函数表解析(转)
zz from http://www.cppblog.com/xczhang/archive/2008/01/20/41508.html C++中的虚函数的作用主要是实现了多态的机制。关于多态,简而言之就是用父类型别的指针指向其子类的实例,然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指针有“多种形态”,这是一种泛型技术。所谓泛型技术,说白了就是试图使用不变的代转载 2009-03-26 14:01:00 · 387 阅读 · 1 评论 -
转个printf
printffunctionint printf ( const char * format, ... );Print formatted data to stdoutWrites to the standard output (stdout) a sequence of data formatted as t转载 2009-04-23 10:16:00 · 295 阅读 · 0 评论