Z-Stack是TI推出的全功能ZigBee协议栈,通过了ZigBee联盟的兼容性平台测试,包含如下几个组件。
1. HAL,硬件抽象层 2. OSAL,操作系统抽象层 3. ZigBee Stack和IEEE 802.15.4 4. User App 5.
MT,通过串口与PC进行通讯的demo ...
Today I typed the
following:intt=(std::max)(timeout,lagtime);Why did I put parentheses around
std::max? Because windows.h defines (among other things)...
分类:
其他好文 时间:
2014-05-01 05:26:13
阅读次数:
383
1 保留小数点后两位#include cout const char * spilt="/";char
*p;p=strtok(str,spilt);while(p!=NULL){ //cout
#includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:
编程语言 时间:
2014-05-01 05:05:45
阅读次数:
409
#include#include#include#include#include#include#include#includeintmain(){vtkSmartPointercylinder=vtkSmartPointer::New();cylinder->SetHeight(3.0);cyli...
分类:
其他好文 时间:
2014-05-01 04:58:32
阅读次数:
242
#include#include#includevoiddisplay(){glClear(GL_COLOR_BUFFER_BIT);//清屏glColor4f(0.0,1.0,0.0,0.5);//绘制矩形glRectf(0.1,0.1,0.6,0.6);glColor4f(1.0,1.0,0.0...
分类:
其他好文 时间:
2014-05-01 04:48:18
阅读次数:
331
1、数的进制默认进制:默认状态下,数据按十进制输入输出。如果要求按八进制或十六进制输入输出,在cin或cout中必须指明相应的数据形式,oct为八进制,hex为十六进制,dec为十进制。1inti,j,k,l;2cout>oct>>i;//输入为八进制数4cin>>hex>>j;//输入为十六进制数...
分类:
其他好文 时间:
2014-05-01 04:47:17
阅读次数:
328
在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结。1
基本操作(1)头文件#include.(2)创建vector对象,vector
vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iteratorit;for(it=vec.b...
分类:
编程语言 时间:
2014-05-01 04:46:15
阅读次数:
373
What is an object? (Page 238)In C++, an object
is just a variable, and the purest definition is "a region of storage" (this is
a more specific way ...
分类:
其他好文 时间:
2014-05-01 04:38:01
阅读次数:
327
GLEW是一个跨平台的C++扩展库,基于OpenGL图形接口。使用OpenGL的朋友都知道,window目前只支持OpenGL1.1的涵数,但
OpenGL现在都发展到2.0以上了,要使用这些OpenGL的高级特性,就必须下载最新的扩展,另外,不同的显卡公司,也会发布一些只有自家显卡才支
持的扩展函...
分类:
其他好文 时间:
2014-05-01 04:30:47
阅读次数:
509
有时安卓软件的开发需要设置全屏,首先介绍一个重要方法那就是requestWindowFeature(featrueId),它的功能是设置窗体标题的有无与样式。参数是Window类中定义的常量。其中FEATURE_CUSTOM_TITLE:自定义标题。当需要自定义标题时必须指定。如:标题是一个按钮时t...
分类:
移动开发 时间:
2014-05-01 04:20:29
阅读次数:
479