本文译自How to sort NSArray with custom
objects。我们开发的每个程序都会使用到一些数据,而这些数据一般被封装在一个自定义的类中。例如一个音乐程序可能会有一个Song类,聊天程序则又一个Friend类,点菜程序会有一个Recipe类等。有时候我们希望在程序中显示的...
分类:
其他好文 时间:
2014-06-29 15:29:25
阅读次数:
342
memcpy() 的解释:void* memcpy(void* dst, const void*
src, size_t n);// if copying takes place between objects that overlap, the
behavior is undefined.因此自己...
分类:
其他好文 时间:
2014-06-07 04:35:21
阅读次数:
551
【题目】
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:
其他好文 时间:
2014-06-07 01:17:49
阅读次数:
269
DFC - Documentum Foundation Classes
位于Content server和client 之间。 用来做服务端业务逻辑和客制。
BOF- Business Object Framework.
模组。 最重要的两个模组是
1. TBOs --type based objects
2. SBOs-- service based objects
3. Aspec...
分类:
其他好文 时间:
2014-06-05 09:09:06
阅读次数:
264
Given an array withnobjects colored red, white
or blue, sort them so that objects of the same color are adjacent, with the
colors in the order red, wh...
分类:
其他好文 时间:
2014-06-04 20:49:33
阅读次数:
276
Given an array withnobjects colored red, white or
blue, sort them so that objects of the same color are adjacent, with the colors
in the order red, wh...
分类:
其他好文 时间:
2014-06-03 13:13:50
阅读次数:
537
1. MongoDB是一个Document Database。A record in MongoDB
is a document,MongoDB documents are similar to JSON
objects。一个Document可以包含其他Documents,并且可以包含Arrays和...
分类:
数据库 时间:
2014-06-03 09:09:17
阅读次数:
313
1、报错信息:Counting objects: 3, done.Writing objects:
100% (3/3), 205 bytes | 0 bytes/s, done.Total 3 (delta 0), reused 0 (delta
0)remote: /opt/gitlab-6.9...
分类:
其他好文 时间:
2014-05-30 04:03:34
阅读次数:
289
The tricky thing is how to decide the key for a
hashmap. Especially when you intend to use self-defined objects as key.The
simple rule is you have to ...
分类:
编程语言 时间:
2014-05-29 09:08:40
阅读次数:
362
转自Joywii的博客,原文:Four Tips for Debugging in XCode
Like a Bro1.Enable NSZombie Objects(开启僵尸对象)Enable NSZombie
Objects可能是整个Xcode开发环境中最有用的调试技巧。这个技巧非常非常容易追踪...
分类:
其他好文 时间:
2014-05-28 12:03:30
阅读次数:
233