码迷,mamicode.com
首页 >  
搜索关键字:if then else    ( 23991个结果
经典SQL语句
--************ null字段处理************1、PicUrl为null或为空的返回默认值:select (case when len(isnull(PicUrl,''))=0 then '/images/default.jpg' else PicUrl en...
分类:数据库   时间:2014-12-16 11:26:35    阅读次数:213
1089: [SCOI2003]严格n元树
好久没更新了。。于是节操掉尽python水过本来就水的题。。1 n,d=map(int, raw_input().split())2 if d==0:3 print 14 else:5 f=[1]6 for i in range(0, d+1):7 f.app...
分类:其他好文   时间:2014-12-16 00:52:54    阅读次数:176
SQL知识二(Day 27)
大家好,好几天都没写博客了。因为自己的一些原因,落下了很多。今天没有学什么新的知识,自己就把以前落下的好好看了一下。好了,今天就先总结一下SQL剩下的一些知识吧。主要学的知识有:循环语句(case语句,if else语句,while语句),跳转语句(break, continue),存储过程,视图....
分类:数据库   时间:2014-12-15 21:35:19    阅读次数:316
c语言基础表达式, 关系运算符, 逻辑运算符, 位运算符, 数据的取值范围, 分支结构(if...else, switch...case)
1.表达式: 表达式的判断是有无结果(值), 最简单的表达式是一个常量或变量, 如:12, a, 3 + 1, a + b, a + 5 都是表达式2.BOOL(布尔)数据类型: c语言中除了基本数据类型, 还有BOO数据类型, 以及一些其它的数据类型, 如自定义的结构体数据类型 BOOL数据类型....
分类:编程语言   时间:2014-12-15 21:33:54    阅读次数:444
算法导论第十五章之钢条切割问题(自顶向下法)
#include #include using namespace std; #define inf -9999 int memorized_cut_rod_aux(int p[],int n,int r[]) { int q=0; if(r[n]>=0) { return r[n]; } else { //int q=inf; for(int i=1;i<=n;++i)...
分类:编程语言   时间:2014-12-15 20:22:04    阅读次数:272
C++11显式转换操作符
C++11之前,已经支持显式转换操作符 #include using namespace std; template class Ptr { public: Ptr(T* p): _p(p) {} operator bool() const { if (_p != 0) return true; else ...
分类:编程语言   时间:2014-12-15 17:23:54    阅读次数:169
13、SQL基础整理(流程控制begin……end)
流程控制begin ……end将一个语句块包含起来,中间可以写任何语句格式:begin--开始 select *from studentend--结束ifdeclare @bianliang intset @bianliang = 10if @bianliang>10 print '你好'else ...
分类:数据库   时间:2014-12-15 17:03:26    阅读次数:177
openGL的第一课
1 #include 2 #include 3 4 #include 5 6 7 8 #ifdef __APPLE__ 9 10 #include 11 12 #else 13 14 #define FREEGLUT_STATIC 15 16 #incl...
分类:其他好文   时间:2014-12-15 17:00:50    阅读次数:171
js切换显隐
方法一:function fun(){ varflag=$(".pic_radio").css("display");if(flag=="none"){$(".pic_radio").css("display","block");}else{$(".pic_radio").css("display"...
分类:Web程序   时间:2014-12-15 15:17:43    阅读次数:161
贪心/CodeForces 489C Given Length and Sum of Digits...
1 #include 2 using namespace std; 3 int m,s; 4 int main() 5 { 6 scanf("%d%d",&m,&s); 7 if (s==0 && m==1) printf("0 0\n"); 8 else if (s==0...
分类:其他好文   时间:2014-12-15 11:47:31    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!