码迷,mamicode.com
首页 >  
搜索关键字:count    ( 18169个结果
gcd
@property (nonatomic) dispatch_semaphore_t semaphore;self.semaphore = dispatch_semaphore_create([self.progressViews count]);dispatch_semaphore_wait(se...
分类:其他好文   时间:2014-06-11 12:51:06    阅读次数:264
count(*)
count(*)是否能用到索引,用索引是高效还是低效select count(*) from aa ;首先看是否会走索引,经过试验发现,他没有走索引它的执行计划 select statement sort aggregate table access full别说是否高效了,他连索引都没有走,索引不...
分类:其他好文   时间:2014-06-11 12:00:01    阅读次数:282
java.io.ByteArrayOutputStream 源码分析
成员变量buf是存储数据的缓冲区 count是缓冲区中的有效字节数。 /** * The buffer where data is stored. */ protected byte buf[]; /** * The number of valid byte...
分类:编程语言   时间:2014-06-11 11:03:44    阅读次数:269
object c
#import const char *name = class_getName([NSObject class]); printf("%s\n", name);void PrintObjectMethods() {unsigned int count = 0;Method *methods = ....
分类:其他好文   时间:2014-06-11 10:51:59    阅读次数:210
20140606
1、求一串字符串中连续出现次数最多的字串 #include#include#includeusing namespace std;pair fun(const string &str){ vector substrs; int maxcount=1,count=1; string substr; i...
分类:其他好文   时间:2014-06-10 00:18:57    阅读次数:266
swift学习第五章-字典的使用
//下面是关于字典的 //字典的格式[key:value] //字典可以存放基本类型和对象类型的 //声明一个字典 var dictionary1=["key1":"鸭鸭","key2":"肉包"] var keyValueCount=dictionary1.count//获取这个字典里面键值对的个数 dictionary1["key1"]="鸡鸡"//改变对应健的值 //updat...
分类:其他好文   时间:2014-06-09 23:44:46    阅读次数:310
班上一个哥们java脑残的笔试题1,2,3,4等于12可以重复3分钟答出来
package com.hao947; public class hao947 { public static void main(String[] args) { int a = 1; int b = 2; int c = 3; int d = 4; int count = 0; for (int i = 0; i <= 12; i++) { for (int...
分类:编程语言   时间:2014-06-08 16:51:26    阅读次数:258
ORACLE—003:Create之创建表前判断表是否存在
建表前如何判断表是否存在呢,因为table是不支持replace的。下面的sql能帮到你。create前先判断表是否存在。例如,如果存在则drop掉那个表。当然你也可以定义自己的操作。 declare v_cnt Number; begin select count(*) into v_cnt from user_tables where upper(table_name) ...
分类:数据库   时间:2014-06-08 15:42:00    阅读次数:329
[LeetCode]Distinct Subsequences,解题报告
题目 Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can be...
分类:其他好文   时间:2014-06-08 14:49:14    阅读次数:347
Algorithm | Vector
因为平常用的话只是vector的一些非常简单的功能,基本上把它当数组来用,现在也只是把这一部分写了一些。 1 template 2 class XVector { 3 public: 4 XVector(int cacheSize):cacheSize(cacheSize), count(0...
分类:其他好文   时间:2014-06-07 23:28:39    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!