码迷,mamicode.com
首页 >  
搜索关键字:else    ( 23991个结果
Codeforces 460 D. Little Victor and Set
暴力+构造 If r?-?l?≤?4 we can all subsets of size not greater than k. Else, if k?=?1, obviously that answer is l. If k?=?2, answer is 1, because xor of numbers 2x and 2x?+?1 equls 1. If k?≥...
分类:其他好文   时间:2014-08-24 11:40:22    阅读次数:233
ExtJS动态设置表头
if(document.getElementById("lxdj_radio").checked){ colQd = new Ext.grid.ColumnModel(colMArray_lxdj); }else{ colQd = new Ext.grid.ColumnModel(colM...
分类:Web程序   时间:2014-08-23 16:47:31    阅读次数:253
shell语法
#if语法 ```sh if list then do something here elif list then do another thing here else do something else here fi ``` 基本上和其他脚本语言一样。没有太大区别。不过值得注意的是。[]里面的条件判断。 ##...
分类:其他好文   时间:2014-08-23 11:28:50    阅读次数:187
cocos2d-x 跨平台usleep方法
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)#define usleep(t) Sleep(t)#else#include #define usleep(t) usleep(t)#endif
分类:其他好文   时间:2014-08-23 11:07:40    阅读次数:389
js 与或运算符 || && 妙用
首先出个题:如图: 假设对成长速度显示规定如下: 成长速度为5显示1个箭头; 成长速度为10显示2个箭头; 成长速度为12显示3个箭头; 成长速度为15显示4个箭头; 其他都显示都显示0各箭头。 用代码怎么实现? 差一点的if,else: Js代码 复制代码 代码如下:var add_level =...
分类:Web程序   时间:2014-08-22 15:56:28    阅读次数:230
js循环
$('.xcarcoin_tb').each(function(i){ var aika='爱卡币'; if(data[i]==0){ }else{ $(this).text(aika+data[i]); } })$.each(data.log, function(i,item) { str +='...
分类:Web程序   时间:2014-08-22 12:54:28    阅读次数:247
jquery轻松操作CSS样式
$(this).click(function(){if($(this).hasClass(“zxx_fri_on”)){$(this).removeClass(“zxx_fri_on”);}else{$(this).addClass(“zxx_fri_on”);}return false;});添加...
分类:Web程序   时间:2014-08-22 12:52:18    阅读次数:325
Fixed: The Windows Process Activation Service service terminated with the following error: The system cannot find the file specified
I'm not yet clear what I did, but I'm blogging it so it can be found if someone else has this issue.For whatever reason, last week both of my Vista 64...
分类:Windows程序   时间:2014-08-22 12:16:36    阅读次数:551
SQL 导出数据字典
用于参考:SELECT 表名=case when a.colorder=1 then d.name else '' end, 表说明=case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号=a.colorder, 字段...
分类:数据库   时间:2014-08-22 09:18:25    阅读次数:257
Hdu1394Minimum Inversion Number线段树
这个网上一搜一大堆,就是先求一个,其余的for一遍搞出来。#include#include#define max 5555int sum[max * 4];int min(int a, int b){ if (a>b) return b; else return a;}void fu...
分类:其他好文   时间:2014-08-22 00:04:25    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!