In bash shell, when you use a dollar sign
followed by a variable name, shell expands the variable with its value. This
feature of shell is called para...
分类:
其他好文 时间:
2014-05-21 18:32:32
阅读次数:
332
原地址:http://www.cnblogs.com/yipu/p/3617521.html1、Code Sign error:
解决方案:重新下载并安装Provisioning profile2、错误:Undefined symbols for architecture armv7s
解决方案.....
分类:
移动开发 时间:
2014-05-18 18:54:43
阅读次数:
308
题目链接:
点击打开链接
题目:
Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were some coins. He decided to buy a very nice watch...
分类:
其他好文 时间:
2014-05-18 15:56:34
阅读次数:
264
原文http://knowyouknowme.iteye.com/blog/574974一、decode在Oracle/PLSQL中,decode具有和
IF-THEN-ELSE 一样的功能。decode函数语法如下:decode( expression , search , result [, s...
分类:
数据库 时间:
2014-05-16 20:41:51
阅读次数:
540
案例1:查询表A数据,如果某个列(PARAM_VALUE)值太长,前台不好显示,就只取前20个字符;鼠标悬浮时再用层显示全部值;
sql写法:
select
m.PARAM_VALUE as PARAM_VALUE,
decode(sign(length(m.PARAM_VALUE)-20),1,CONCAT(SUBSTR(m.PARAM_VALUE,0,20),'...'),m.PARAM...
分类:
数据库 时间:
2014-05-15 23:53:08
阅读次数:
625
Divide two integers without using multiplication, division and mod operator.
public class Solution {
public int divide(int dividend, int divisor) {
int sign = 1;
if (dividend < 0) {
...
分类:
其他好文 时间:
2014-05-15 14:40:50
阅读次数:
285
这期讨论了DLC(DLC:Downloadable Content
(可下载内容),亦可称“追加内容下载包”,或“可下载资料包”。)在美国,可以购买二手游戏光碟。在这种情况下,开发商一分钱都拿不到。所以游戏开发者想到了一个好点子:开发DLC。当二手玩家插入光碟开始游戏时,就会提示他需要10美金下载某...
分类:
其他好文 时间:
2014-05-15 07:27:56
阅读次数:
220
/* Signals. */#define SIGHUP 1 /* Hangup
(POSIX). */#define SIGINT 2 /* Interrupt (ANSI). */#define SIGQUIT 3 /* Quit
(POSIX). */#define SIGILL ...
分类:
其他好文 时间:
2014-05-12 10:04:23
阅读次数:
292
挺考智力的题目。
思路:
1 如果是假币,那么每次都必定引起天平的不平衡
2 如果天平平横,那么全部都肯定是真币
利用这个特性,利用hash表,就能写出很简洁的程序。
如果使用枚举,那么会(轻松?)过百行的代码的。
当然其实题目给出了条件:一定可以找出唯一的假币的。
如果没有这个条件,那么是不一定可以三次称,就能确定结果的。
下面程序参考了别人的:
htt...
分类:
其他好文 时间:
2014-05-10 04:21:02
阅读次数:
386
题目:
Description
People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very n...
分类:
其他好文 时间:
2014-05-09 15:00:55
阅读次数:
345