declare v_exists_table number;begin select count(*) into v_exists_table from all_tables where table_name = 'NUMBERS'; if v_exists_table 0 then e...
分类:
数据库 时间:
2015-06-28 17:03:28
阅读次数:
132
Given a range [m, n] where 0 >1; n = n>>1; count++; } return m<<count; }}
分类:
其他好文 时间:
2015-06-28 15:22:19
阅读次数:
93
网上各种文章、问答给出的结论都是“ARC下无法打印对象的引用计数值”。确实,ARC禁止直接查看Objective-C对象的引用计数,但是Objective-C对象不是还可以转化为Core Foundation对象么?于是动手做了一个小实验:id obj = [[NSObject alloc]init];
printf("retain count = %ld\n",CFGetRetainCount((...
分类:
其他好文 时间:
2015-06-28 14:13:46
阅读次数:
115
本人算法小菜,看见一个非常好的算法,统计一个数的二进制数的1的个数。觉得不错,与大家分享。1 int fun(int x){2 int count = 0;3 while(x){4 count++;5 x = x &(x-1)6 }7 ...
分类:
编程语言 时间:
2015-06-28 11:04:25
阅读次数:
118
FileSystem shell指令
官方文档: HDFS Commands Reference
appendToFile
cat
checksum
chgrp
chmod
chown
copyFromLocal
copyToLocal
count
cp
createSnapshot
deleteSnapshot
df
du
dus
expunge
find
get
getfacl
getfattr...
分类:
编程语言 时间:
2015-06-27 18:28:18
阅读次数:
184
#include
using namespace std;
namespace CounterNameSpace
{
int upperbound;
int lowerbound;
class counter
{
int count;
public:
counter(int n)
{
if (n <= upperbound )
{
...
分类:
其他好文 时间:
2015-06-27 16:28:02
阅读次数:
117
TQueue 和 TStack, 一个是队列列表, 一个是堆栈列表; 一个是先进先出, 一个是先进后出.TStack 主要有三个方法、一个属性:Push(压栈)、Pop(出栈)、Peek(查看下一个要出栈的元素);Count(元素总数).本例效果图:代码文件:unit Unit1;interface...
分类:
其他好文 时间:
2015-06-27 15:48:12
阅读次数:
125
TQueue 和 TStack, 一个是队列列表, 一个是堆栈列表; 一个是先进先出, 一个是先进后出.TQueue 主要有三个方法、一个属性:Enqueue(入列)、Dequeue(出列)、Peek(查看下一个要出列的元素);Count(元素总数).本例效果图:代码文件:unit Unit1;in...
分类:
其他好文 时间:
2015-06-27 15:43:22
阅读次数:
127
写在前面mysql的学习,断断续续,今天就接着学习mysql的日期操作吧。系列文章mysql之创建数据库,创建数据表mysql之select,insert,delete,updatemysql之group by,order bymysql之count,max,min,sum,avg,celing,f...
分类:
数据库 时间:
2015-06-27 11:18:54
阅读次数:
151
有Student类:
package testreflection;
public class Student{
private static int count;
private String stuNum;
public Student(String stuNum) {
// TODO Auto-generated constructor stub
this.stuNum...
分类:
编程语言 时间:
2015-06-27 09:56:06
阅读次数:
145