- (void)loadAssets {
// Initialise
_assets = [NSMutableArray new];
_assetLibrary = [[ALAssetsLibrary alloc] init];
// Run in the background as it takes a while to get a...
分类:
其他好文 时间:
2014-06-05 12:06:55
阅读次数:
215
Bugs Integrated, Inc.
Time Limit: 15000MS
Memory Limit: 30000K
Total Submissions: 8825
Accepted: 3381
Case Time Limit: 5000MS
Description
Bugs Integrated, Inc. i...
分类:
其他好文 时间:
2014-06-05 12:00:52
阅读次数:
348
一直没有认真觉察UPDATE操作的锁,最近在MSDN上看到一个问题,询问堆表更新的死锁问题,问题很简单,有类似这样的表及数据:CREATE TABLE dbo.tb( c1 int, c2 char(10), c3 varchar(10));GODECLARE @id int;SET @id = 0;WHILE @id 5BEGIN; SET...
分类:
其他好文 时间:
2014-06-05 10:24:32
阅读次数:
271
很多的开源软件在安装过程中会出现找不到动态库的问题我在ubuntu12.04安装lxc时,没有出现这问题,但在centos6.5的时候出现了这问题fix:#find / -name liblxc.so.1#echo "/usr/local/lib/" >> /etc/ld.so.conf#ldconfig...
分类:
其他好文 时间:
2014-06-05 06:23:02
阅读次数:
243
用于大型程序的工具--异常处理[续2]八、自动资源释放 考虑下面函数:void f()
{
vector v;
string s;
while (cin >> s)
{
v.push_back(s);
}
string *p = new string[v.size()];
//...
delete p;
}
在正...
分类:
编程语言 时间:
2014-06-05 06:07:27
阅读次数:
393
原文:http://blog.csdn.net/tjvictor/article/details/4360030在SQL Server
中插入一条数据使用Insert语句,但是如果想要批量插入一堆数据的话,循环使用Insert不仅效率低,而且会导致SQL一系统性能问题。下面介绍SQL
Server支...
分类:
数据库 时间:
2014-05-31 17:06:40
阅读次数:
279
mysql 语句case whenselect USER_ID ,USER_NAME
,CASE WHEN atten.DESTINATION_ID is null THEN FALSE ELSE TRUE END as attentioned
from T_SD_USER as user...
分类:
数据库 时间:
2014-05-31 11:38:49
阅读次数:
313
逆序数的性质。1. 暴力解 1 #include 2 3 #define MAXNUM 5005 4
5 int a[MAXNUM]; 6 7 int main() { 8 int n; 9 int i, j, sum, min;10 11 while
(scanf(...
分类:
其他好文 时间:
2014-05-31 07:50:50
阅读次数:
170
数组循环输入,打印的时候为数组名加下标,调用函数,数组为参数的时候只有数组名,且传递的是数组的地址,不是值。冒泡排序int
i,j;int a[5];int med;for(i=0;i<5;i++){ for(j=i+1;j<5;j++){ if(a[i]<a...
分类:
其他好文 时间:
2014-05-31 04:11:37
阅读次数:
234
一 while循环二do while循环三
for循环for循环的执行顺序用如下表达式:for(expression1;expression2;expression3) 循环变量初值; 循环条件;
循环变量增量{ expression4;} 执行的顺序应该是:1)第一次循环,即初始化循环。 ...
分类:
编程语言 时间:
2014-05-31 01:00:04
阅读次数:
364