一般情况下,我们采用C风格的enum关键字可以定义枚举类型。[cpp]view plaincopyenum{UIViewAnimationTransitionNone,UIViewAnimationTransitionFlipFromLeft,UIViewAnimationTransitionFli...
分类:
移动开发 时间:
2014-08-03 22:56:16
阅读次数:
278
Dig简介: Dig是一个在类Unix命令行模式下查询DNS包括NS记录,A记录,MX记录等相关信息的工具。由于一直缺失Dig man page文档,本文就权当一个dig使用向导吧。 Dig的源码是ISC BIND大包的一部分,但是大多编译和安装Bind的文档都不把它包括在内,但是在linux系统下...
分类:
系统相关 时间:
2014-07-31 20:23:27
阅读次数:
558
#include "cocos2d.h"#include "cocos-ext.h"USING_NS_CC;USING_NS_CC_EXT;using namespace ui; UIButton *button = UIButton::create(); button->setTouchEna.....
分类:
其他好文 时间:
2014-07-31 20:07:17
阅读次数:
163
对于系统定义不可变的类型的对象,复制时不会产生新的对象【ns numb string array dictionary】r只写r+xie读w只读w+清理完在写a追加a+数据持久化NSUserDefaults 只能存系统定义的类型,不能存太多或是大数据,可用于系统偏好设置;plist不能存自定义的.....
分类:
其他好文 时间:
2014-07-31 09:36:16
阅读次数:
328
这是用的是SpringMVC-3.1.1、commons-fileupload-1.2.2和io-2.0.1 首先是web.xml <?xml?version="1.0"?encoding="UTF-8"?>??
<web-app?version="2.5"???
????xmlns="http://java.sun.com/xml/ns/jav...
分类:
编程语言 时间:
2014-07-30 12:38:14
阅读次数:
319
首先是封装好的滑动指标类,具体首先创建一个画图类:SliderIndicator类,该类代码如下:
//SliderIndicator.h
#include "cocos2d.h"
#include "ui/CocosGUI.h"
USING_NS_CC;
class SliderIndicator:public ui::Layout
{
public:
CREATE...
分类:
其他好文 时间:
2014-07-30 10:03:23
阅读次数:
276
转载请注明出处:http://blog.csdn.net/ns_code/article/details/26092725 剑指offer上的第24题,主要考察递归思想,九度OJ上AC。题目描写叙述:输入一个整数数组,推断该数组是不是某二叉搜索树的后序遍历的结果。假设是则输出Yes,否则输出No。....
分类:
其他好文 时间:
2014-07-29 13:33:08
阅读次数:
228
一个对象使用copy或mutableCopy方法可以创建对象的副本copy - 需要先实现NSCopying协议,创建的是不可变副本(如NSString, NSArray, NSDictionary)mutableCopy - 需要先实现NSMutableCopying协议,创建的是可变副本(如NS...
分类:
其他好文 时间:
2014-07-27 21:44:15
阅读次数:
184
品质升级,Geeben推出S系列新品,高清真彩画质、高兼容性<?xml:namespaceprefix="o"ns="urn:schemas-microsoft-com:office:office">?xml:namespace>型号:GBS-2404/GBS-2408/GBS-2416Geeben该系列产品依据标准19寸机柜尺寸设计,可直接固定于标准机柜,1U高度设计节省..
分类:
其他好文 时间:
2014-07-26 03:22:18
阅读次数:
364
#pragma once
#include <iostream>
#include <string>
using namespace std;
//itoa
//int ==> string
//10进制
string itoa(int nNum)
{
int nSize = 128;
char* pStr = new char[nSize];
memset(pStr,0,nS...
分类:
其他好文 时间:
2014-07-25 00:10:54
阅读次数:
251