#include
using std::cout;
using std::endl;
//定义结构
struct Box{
double length;
double width;
double height;
};
double volume(const Box& aBox);
int main(){
Box box={70.0,60.0,40.0};
d...
分类:
编程语言 时间:
2014-07-11 08:37:11
阅读次数:
189
关于纹理使用
1 纹理的创建
2 纹理的寻址方式
3 纹理的过滤方式
1 纹理的创建
D3DXCreateTexture函数
创建一个空的纹理。
HRESULT D3DXCreateTexture(
__in LPDIRECT3DDEVICE9 pDevice,
__in UINT Width,
__in UINT Height,
__...
分类:
其他好文 时间:
2014-07-11 00:44:37
阅读次数:
229
1.编程语言和应用整体介绍" style="clear: both; font-size: 1.8em; margin: 0px 0px 0.85em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(230, 230, 230); line-height: 1.7em; color: r...
分类:
编程语言 时间:
2014-07-11 00:42:02
阅读次数:
305
1、window.open()参数window.open(pageURL,name,parameters)其中:pageURL为子窗口路径name为子窗口句柄parameters为窗口参数(各参数用逗号分隔),如常用的'height=100,width=400,top=0,left=0,toolba...
图片放大的思路: 第一、可以通过Matrix对象来变换图像,在选择的时候放大,在失去焦点的时候,缩小到原来的大小。double scale = 1.2;int width = bm.getWidth();int height = bm.getHeight();Log.i("size:", wi...
分类:
移动开发 时间:
2014-07-09 16:35:13
阅读次数:
234
今天首先初步的了解了UI控件的一些皮毛知识。一 view控件图中绿色和红色部分是view控件。坐标原点位于左上角,Y轴向下为正方向,X轴向右为正方向。通过更改参数可以改变view视图的height和weight以及在图中的坐标位置。同时,可以层叠多个view,涉及到相对坐标系,其中一个view以另....
分类:
其他好文 时间:
2014-07-09 16:07:28
阅读次数:
268
获取屏幕尺寸[[[UIScreen mainScreen] currentMode].size.width];[[[UIScreen mainScreen] currentMode].size.height];也能够:NSLog(@"FrameHeight:%fFrameWidth:%f",self...
分类:
移动开发 时间:
2014-07-09 14:53:40
阅读次数:
213
Bullets 用来定义ul li 相关的样式 no-bullet 关闭 li的默认样式 那个小圆点 no-bullets 作用域ul 调用no-bullet 函数 不过用了reset 后 默认没有小圆点了 pretty-bullets($bullet-icon, $width, $height, ...
分类:
其他好文 时间:
2014-07-09 13:24:23
阅读次数:
228
/**
* 按正方形裁切图片
*/
public static Bitmap ImageCrop(Bitmap bitmap) {
int w = bitmap.getWidth(); // 得到图片的宽,高
int h = bitmap.getHeight();
int wh = w > h ? h : w;// 裁切...
分类:
移动开发 时间:
2014-07-09 10:33:18
阅读次数:
233
普通应用:importflash.display.StageAlign;importflash.display.StageScaleMode;stage.align=StageAlign.TOP_LEFT;stage.scaleMode="noScale";stage.addEventListener(Event.RESIZE,resizeHandler);functionresizeHandler(event:Event){ bj.width=stage.stageWidth; bj.height..
分类:
其他好文 时间:
2014-07-09 08:51:40
阅读次数:
427