You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you cli...
分类:
其他好文 时间:
2014-08-24 22:00:03
阅读次数:
220
>_hWin; 8 GUI_PID_STATE* State; 9 10 switch (pMsg->MsgId) {11 case WM_INIT_DIALOG:12 break;13 case WM_NOTIFY_PARENT:14 if (pMsg->Data....
分类:
其他好文 时间:
2014-08-24 20:45:53
阅读次数:
231
关于递归程序:递归程序结构包括三部分:递归出口、逻辑处理(需要处理的问题)、递归调用(衔接)。递归与数学归纳法:递归是数学归纳法在计算机程序中的体现。使用递归思想设计程序时,我们设置base case,并假设我们会获得n-1的结果,并实现n的结果。这就好像数学归纳法,我们只关注初始和衔接,而不需要关...
分类:
其他好文 时间:
2014-08-24 15:27:12
阅读次数:
210
设置mysql表名大小写不敏感 lower_case_table_names含义http://blog.csdn.net/iefreer/article/details/8313839 找到MySQL的my.cnf配置文件(vi /etc/my.cnf ),在里面添加: lower_case_tab...
分类:
数据库 时间:
2014-08-23 16:47:21
阅读次数:
229
>__MsgId) {105 case WM_INIT_DIALOG:106 //107 // Initialization of 'Listbox'108 //109 hItem = WM_GetDialogItem(pMsg->hWin, ID_LISTBOX...
分类:
其他好文 时间:
2014-08-23 04:37:40
阅读次数:
266
一、CASE的两种用法1.1等值判断->相当于switch case (1)具体用法模板: CASE expression WHEN value1 THEN returnvalue1 WHEN value2 THEN returnvalue2 WHEN valu...
分类:
数据库 时间:
2014-08-23 02:19:29
阅读次数:
368
本题就是大数相加,题目都不用看了。
不过注意的就是HDU的肯爹输出,好几次presentation error了。
还有个特殊情况,就是会有空数据的输入case。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using...
分类:
其他好文 时间:
2014-08-23 01:09:59
阅读次数:
178
SELECT year(payment_date),sum(CASE month(payment_date) WHEN 01 THEN amount END) '一月份销售额',sum(CASE month(payment_date) WHEN 02 THEN amount END) '二月份销售额...
分类:
其他好文 时间:
2014-08-22 19:19:29
阅读次数:
242
select a.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme,a.communicationproperty,a.communicationtime,a.productmanager,'' creator,a.creator oaCreator,a.createdate,case when a.oast...
分类:
数据库 时间:
2014-08-22 17:54:09
阅读次数:
202
Recently, Zhongguancun Online distributed theZOL Downer for users to download the resources from ZOL. In this case, userscan just download the ZOL downer with the code of resources, not theinstallation packages.
But if someone want toinstall the PC wh...
分类:
其他好文 时间:
2014-08-22 12:55:58
阅读次数:
548