和C语言不同,在Objective-C语言中,有单独的字符串类NSString。C语言中,string是由 char(ASCLL码)字符组成OC中,字符串是由unichar(Unicode)字符组成NSString,不可变字符串,即:创建以后,内容和长度不能更改NSMutableString,可变字...
分类:
其他好文 时间:
2015-04-11 20:44:31
阅读次数:
212
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;using GearUp.Crawler.Entities;using...
分类:
其他好文 时间:
2015-04-11 20:41:53
阅读次数:
171
在学习《Android编程权威指南》P124页的时候,遇到了这样的代码:引起了我的疑问if的判断条件是(fragment==null),那执行完上一句 Fragment Fragment=fm.findFragmentById(R.id.fragmentContainer); fragment的值到...
分类:
其他好文 时间:
2015-04-11 20:42:32
阅读次数:
124
蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41117 Accepted Submission(s): 30915P...
分类:
其他好文 时间:
2015-04-11 20:40:31
阅读次数:
112
FileStream fs = new FileStream(url, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);StreamReader sr = new StreamReader(fs, System.Text.Encoding.D...
分类:
其他好文 时间:
2015-04-11 20:42:56
阅读次数:
148
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-04-11 20:41:45
阅读次数:
114
Can you answer these queries?Time Limit:2000MSMemory Limit:65768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4027DescriptionA lot of battles...
分类:
其他好文 时间:
2015-04-11 20:41:24
阅读次数:
156
int b[2]={2,3}; int c[2]={4,5}; int **p,**q,**m; q=new int*[2]; q[0]=new int; q[1]=new int; **q=c[0]; *(*q+1)=c[1]; delete q[0]; delete q[1]; dele...
分类:
其他好文 时间:
2015-04-11 20:41:56
阅读次数:
128
公司特效组最近一半的人一直都在做着修穿插这样的一个重复的事情,听说来公司之前大家也都一直这样做着,这种完全不能把艺术家从重复劳动中解放出来的状态确实有点让人神伤。最近本人也在做着这方面工作,想借着这个机会,总结一下自己这方面的经验,也重点探讨一个能够适用常规多数角色穿插问题的解决方法。希望能做到抛砖...
分类:
其他好文 时间:
2015-04-11 20:41:46
阅读次数:
330
Determine whether an integer is a palindrome. Do this without extra space.看到题目第一想法是将数字倒过来相减,看是否为0,但是会超时。原因是大部分可能并不是,所以循环中间就退出循环了。目前这个程序是按最左位与最右位逐次比较。代...
分类:
其他好文 时间:
2015-04-11 20:39:13
阅读次数:
115
Node.js v0.12.2 手册及文档翻译 - Assertion Testing(测试)
分类:
其他好文 时间:
2015-04-11 20:38:24
阅读次数:
173
1.手动将jar包安装到仓库的命令示例:首先:编写命令:mvn install:install-file -Dfile=D:\lucene-highlighter-4.10.2.jar -DgroupId=org.apache.lucene-DartifactId=lucene-hightlight...
分类:
其他好文 时间:
2015-04-11 20:39:59
阅读次数:
111
前言:写了N多年代码,知道设计模式已经有8,9年了,用过设计模式,有一些又很好的用处。但是也有一些是不应该存在的设计模式。从这里开始:桥接模式1.作用:将一个抽象与实现解耦,以便两者可以独立的变化。(摘自wiki)2.UML3.代码:/** "Implementor" */interface Dra...
分类:
其他好文 时间:
2015-04-11 20:39:02
阅读次数:
149
游戏中物体腐化消失,燃烧消失时,会有从局部慢慢消失的效果,然后配合一些粒子特效,就能达到非常好的美术效果。类似效果如下:注:_DissColor为溶解主色,_AddColor为叠加色,按照溶解的移动方向来看开始色为DissColor+AddColor上图中DissColor为红色,AddColor为...
分类:
其他好文 时间:
2015-04-11 20:38:23
阅读次数:
420
题意:给出一幅无向图,每次询问给出起点和终点,求起点到终点权值差最小的一条路,输出权值差;思路:边按权值排序,利用并查集枚举每次能使起点终点联通的情况下权值差,并每次更新最小值;#include#include#includeusing namespace std;#define INF 0x3f3...
分类:
其他好文 时间:
2015-04-11 20:36:34
阅读次数:
133
XFCE stores it‘s configuration for the running session in?xfconfd. Feel free to back up the files you‘re going to delete first. Shut down the panel first,?xfce4-panel --quit Kill the xfce4 confi...
分类:
其他好文 时间:
2015-04-11 19:37:11
阅读次数:
180
关于复合索引中的2个索引列谁在前谁在后的进一步讨论--实践篇...
分类:
其他好文 时间:
2015-04-11 19:34:04
阅读次数:
224