其他
nil用来给对象赋值(Objective-C中的任何对象都属于id类型),NULL则给任何指针赋值,NULL和nil不能互换,nil用于类指针赋值(在Objective-C中类是一个对象,是类的meta-class的实例), 而NSNull则用于集合操作,虽然它们表示的都是空值,但使用的场合完全不同...
分类:其他 时间:2014-01-19 15:53:52 收藏:0 阅读:497
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 mapvis; 8 bool obious(int x){ 9 int cnt = 0;10 while(x>0){11 if(x%2)cn...
分类:其他 时间:2014-01-19 15:53:57 收藏:0 阅读:497
使用引用参数的主要原因程序员能够在函数中修改调用函数参数中的数据对象通过传递引用而不是整个数据对象,可以提高程序的运行速度。尤其是当数据对象较大时,如结构和类对象。对于使用传递的值而不作修改的函数:如果数据对象较小,如内置数据类型或者小型结构,则按值传递。如果数据对象是数组,则只能使用指针,并且将指...
分类:其他 时间:2014-01-19 15:53:47 收藏:0 阅读:424
1 #include "stdafx.h" 2 #include 3 4 using namespace std; 5 struct ListNode 6 { 7 int m_nValue; 8 ListNode* m_pNext; 9 };10 11 void AddToTail(ListNode...
分类:其他 时间:2014-01-19 15:53:37 收藏:0 阅读:435
http://www.rust-lang.org/
分类:其他 时间:2014-07-22 22:58:44 收藏:0 阅读:290
一直试图为自己搭建一个完善的编程环境.本机是 windows 系统, 由于只需要 linux 的编译环境, 在 virtualbox 中安装了CentOS 6.5 minimal, 不带桌面的. 目标是在 windows 上搭建 svn server, 虚拟机中可以用 subversion clie...
分类:其他 时间:2014-01-19 15:53:22 收藏:0 阅读:520
1 void RemoveNode(ListNode** pHead,int value) 2 { 3 if(pHead==NULL||*pHead==NULL) 4 return; 5 ListNode* pToBeDeleted = NULL; 6 if((*pHead)->m_nValue==...
分类:其他 时间:2014-01-19 15:53:12 收藏:0 阅读:435
using UnityEngine;using System.Collections;public class _5_6 : MonoBehaviour{ private GameObject camera0; private GameObject camera1; private GameObje...
分类:其他 时间:2014-01-19 15:53:17 收藏:0 阅读:435
maven提供了丰富的plugins。
分类:其他 时间:2014-07-22 22:58:44 收藏:0 阅读:391
主pom的定义packaging:pommodules的指定dependencyManagement的指定properties的指定build或profile的设置子module的创建在主pom的文件夹下新建modulepom中指定module-name、packaging、对其余pom的依赖dep...
分类:其他 时间:2014-01-19 15:52:52 收藏:0 阅读:389
1166385166386166387166744
上一页共1667435条下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!