CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - create object
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - create object - List
[
Compress-Decompress algrithms
]
05_3d
DL : 0
我们使用多边形和四边形创建3D物体,把三角形变为立体的金子塔形状,把四边形变为立方体。 -We use quadrilateral polygon and create a 3D object, the triangle into three-dimensional pyramid shape, the quadrilateral into a cube.
Date
: 2026-01-10
Size
: 637kb
User
:
王双
[
Compress-Decompress algrithms
]
bmp
DL : 0
在用vc做程序时候,经常需要把输出的文本和图形保存到位图文件,当然可以有现成的控件来实现,但总不能如自己所愿,还是自己动手写吧!如下图: 一、实现方法 要把文本和图形保存到位图文件,只要对掌握位图结构有一定的了解,一切都ok呢。先必须要创建内存设备环境,然后内存设备环境创建的DIB区域,别忘了还要创建个CBitmap对象,CBitmap对象必须和DIB区域关联起来,把CBitmap对象选择到当前设备环境,然后在当前设备环境输出文本和图形就可以了。 -Vc procedures used to do often need to output text and graphics preservation plan in place, and of course, can have ready-made controls to achieve, but not as his own wish, or write your own hands! The following graph: First, the realization method of text and graphics to put in place plans to preserve documents, as long as the structure of the master bitmap have a certain understanding, everything is ok then. First need to create a memory device environment, and then memory devices DIB created regional environment, do not forget to also create a CBitmap object, CBitmap object must be associated with DIB region to choose CBitmap object to the current equipment, the environment, and then in the current environment equipment output text and graphics on it.
Date
: 2026-01-10
Size
: 5kb
User
:
林
[
Compress-Decompress algrithms
]
stack
DL : 0
C++ Interface Class This C++ code is intended to be a tutorial. It is an extension of the idea presented in Item 42 of Scott Meyer s "Effective C++", 2nd Edition. In his discussion he creates a generic stack class to contain pointers-to-objects. His class is written with a void* based implementation, and a template-based interface. The chief aim of restricting templates to interface classes is to reduce "code bloat", which is the replication of template code for each instantiated type. Bloat increases the overall size of the object code. In my demo, I extend the interface-class idea to create a generic stack class to contain objects (ie, not just pointers to objects). This demo also provides a nice example of using "placement new" and explicit destruction.
Date
: 2026-01-10
Size
: 3kb
User
:
邹娟
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.