1、首先说一下canvas类: Class Overview The Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a...
分类:
移动开发 时间:
2014-09-22 14:07:32
阅读次数:
317
1.在定义类的赋值描述符成员函数时,有以下几点要注意:1)判断是否是自己赋值给自己2)返回值是const类的引用(为了连续赋值)3)参数是const类的引用4)如果数据成员中有指针,注意要深拷贝,且要释放之前指针指向的内存。2.类的拷贝构造函数,一定不能使用该类型的变量做参数,会无法通过编译的。因为...
分类:
其他好文 时间:
2014-09-21 00:37:29
阅读次数:
334
in soapui the XML object used here is from org.w3c.dom package so you need to read this article carefully before we can use xml object very well. http...
分类:
其他好文 时间:
2014-09-20 22:12:49
阅读次数:
215
//接收过滤器:单播过滤、crc校验和匹配格式使能。enc28j60Write(ERXFCON, RXFCON_UCEN|ERXFCON_CRCEN|ERXFCON_PMEN);只要注释掉该句代码,即可正常收到OFFER。
分类:
其他好文 时间:
2014-09-20 15:16:37
阅读次数:
226
引用剑指offer 1 //组合,从字符串str中取m个字符的所有组合,结果保存在vector中 2 void combination(char* str,int m,vector& result){ 3 //有两个停止条件:m==0或者*str=='\0' 4 //先判断m 5 ...
分类:
其他好文 时间:
2014-09-20 15:16:27
阅读次数:
203
引用剑指offer 1 //判断以root1为根的树是否和树2有相同的结构(如果为真,必须从root1节点就相同) 2 bool doesRoot1HaveAllNodesOfRoot2(treeNode* root1,treeNode* root2){ 3 if(root2==NULL) ...
分类:
其他好文 时间:
2014-09-20 13:57:17
阅读次数:
118
引用剑指offer 1 //字符串全排列,begin始终指向当前要置换的字符串 2 void permutation(char* str,char* begin){ 3 if(!str || !begin) 4 return; 5 if(*begin=='\0'){ ...
分类:
其他好文 时间:
2014-09-20 11:03:47
阅读次数:
176
应用剑指offer 1 //判断二叉树是否平衡,后序遍历 2 bool isBalanced(treeNode* root,int& deep){ 3 if(root==NULL){ 4 deep=0; 5 return true; 6 } 7 ...
分类:
其他好文 时间:
2014-09-20 09:57:07
阅读次数:
162
Abstract. Although polynomials offer many advantages, there exist a number of important curve and surface types which cannot be represented precisely ...
分类:
其他好文 时间:
2014-09-19 20:52:26
阅读次数:
405
今天同事跟我说,他之前在mysql上建的视图没办法更改,更改的时候报如下错误:SQLError1227:Accessdenied;youneedtheSUPERprivilegeforthisoperation起初,我以为是权限的问题,查了半天,权限明明是有的,新增了如下两条授权条件,还是不行:grant操作MySQL视图、查看视图源代..
分类:
数据库 时间:
2014-09-19 19:33:26
阅读次数:
295