码迷,mamicode.com
首页 >  
搜索关键字:supra vaider h supra indy ns    ( 1744个结果
cocos2d tiledmap
#include "HelloWorldScene.h"USING_NS_CC;CCScene* HelloWorld::scene(){ CCScene *scene = CCScene::create(); HelloWorld *layer = HelloWorld::create...
分类:其他好文   时间:2014-05-27 02:06:26    阅读次数:221
使用printf输出各种格式的字符串( 转载)
1. 原样输出字符串: printf("%s", str);2. 输出指定长度的字符串, 超长时不截断, 不足时右对齐: printf("%Ns", str); --N 为指定长度的10进制数值3. 输出指定长度的字符串, 超长时不截断, 不足时左对齐: printf("%-Ns", str); -...
分类:其他好文   时间:2014-05-24 01:45:06    阅读次数:336
基于XML配置的Spring MVC
1、添加jar 2、web.xml配置  xmlns="http://java.sun.com/xml/ns/javaee"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://ja...
分类:编程语言   时间:2014-05-22 11:23:45    阅读次数:436
NSValue (将结构体包装成NSValue)
将结构体包装成 NSValue ,并取出结构体1 NSRect rect = {0, 0, 200,200};2 NSValue *rectValue = [NSValue valueWithBytes:&rect objCType:@encode(NSRect)];3 NS...
分类:其他好文   时间:2014-05-19 17:31:28    阅读次数:246
ASIHTTPRequest学习笔记
1、creating requestsrequest分为同步和异步两种。不同之处在于开始request的函数:[request startSynchronous];[request startAsynchronous];其中,异步的request构造方式如下:- (void) grabURLs{NS...
分类:其他好文   时间:2014-05-17 18:31:28    阅读次数:226
hello.hs haskell
hello.ns-- 创建模块 Main 首字母大写module Main where-- 导入可能用到的模块import System.Environment-- haskell 程序首先会执行 Main模块的 main action-- main :: IO () 是type 声明, 这里可省略...
分类:其他好文   时间:2014-05-15 22:21:02    阅读次数:334
多参数的接法
-(id)initWithTitle:(NSString*)titlemessage:(NSString*)messagedelegate:(id)delegatecancelButtonTitle:(NSString*)cancelButtonTitleotherButtonTitles:(NSString*)otherButtonTitles,...NS_REQUIRES_NIL_TERMINATION;关于多参数的接法;va_listargumentList;NSMutableArra..
分类:其他好文   时间:2014-05-15 08:44:11    阅读次数:199
hdu 3625 第一类striling 数
1 /** 2 第一类Stirling数是有正负的,其绝对值是包含n个元素的集合分作k个环排列的方法数目。 3 递推公式为, 4 S(n,0) = 0, S(1,1) = 1. 5 S(n+1,k) = S(n,k-1) + nS(n,k)。 6 7 大意: 有n个房间,n把钥匙,钥匙在房间中,.....
分类:其他好文   时间:2014-05-13 21:08:12    阅读次数:293
coco2d-x CCScrollView实现背包翻页
#include "CCCGameScrollView.h" USING_NS_CC; USING_NS_CC_EXT; CCCGameScrollView::CCCGameScrollView() :m_fAdjustSpeed(ADJUST_ANIM_VELOCITY) , m_nPrePage(0) { } CCCGameScrollView::~CCCGameScrollV...
分类:其他好文   时间:2014-05-13 05:48:36    阅读次数:270
AFNetworking注意的地方
1.新版的操作的确十分给力2.url如果有中文一定要记得stringByAddingPercentEscapesUsingEncoding否则闪退3.如果服务端头是 text/html的接口manager.responseSerializer.acceptableContentTypes = [NS...
分类:Web程序   时间:2014-05-12 04:20:47    阅读次数:341
1744条   上一页 1 ... 171 172 173 174 175 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!