如果忘了对一个Number 型变量初始化,那么这个变量参与的任何数学运算的结果都是NaN;如果最终结果赋值给有声明类型的变量,那么为该变量的默认值(仅限uint ,int)。 ...
分类:
其他好文 时间:
2017-10-29 20:21:53
阅读次数:
120
除基元数据类型(int,uint,number,string),其他数据类型声明,默认值是null。 所有不声明类型的变量,默认都是undefined。 as2中不管有没有声明类型变量,没有赋值,则全部为undefined. as3数据类型,根据黑羽大神概括为值类型(基元类型),引用类型;值类型实际 ...
分类:
其他好文 时间:
2017-10-29 19:36:55
阅读次数:
281
#include //窗口处理函数 HINSTANCE g_hIns; LRESULT CALLBACK WndProc(HWND hWnd,UINT msgID, WPARAM wParam,LPARAM IParam) { switch (msgID) { case WM_DESTROY: Po... ...
【加载 AssetBundle 的四种方法】 1、AssetBundle.LoadFromMemoryAsync(byte[] binary, uint crc = 0); 返回AssetBundleCreateRequest.Use assetBundle property to get an A ...
分类:
其他好文 时间:
2017-09-30 21:54:12
阅读次数:
1880
#include #include //使用空指令_nop_() #include #define uchar unsigned char #define uint unsigned int sbit RX=P2^0; //接收 sbit TX=P2^1; //发射 位操作,没有用宏定义 ... ...
分类:
其他好文 时间:
2017-09-27 10:00:57
阅读次数:
204
1:代码如下: // 4.5.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; typedef unsigned int UINT; //自定义类型 long Fac(const ...
分类:
编程语言 时间:
2017-09-14 11:57:18
阅读次数:
167
#include #include #include /* typedef unsigned long ngx_atomic_uint_t; typedef volatile ngx_atomic_uint_t ngx_atomic_t; typedef long ngx_atomic_int_t;... ...
分类:
其他好文 时间:
2017-09-11 19:53:36
阅读次数:
148
WORD:16位无符号整型数据 DWORD:32位无符号整型数据(DWORD32) DWORD64:64位无符号整型数据 INT:32位有符号整型数据类型 INT_PTR:指向INT数据类型的指针类型 INT32:32位符号整型 INT64:64位符号整型 UINT:无符号INT LONG:32位符 ...
在屏幕上显示一个消息框。 int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 ); int AFXAPI AfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK ...
分类:
其他好文 时间:
2017-09-08 23:51:59
阅读次数:
402