码迷,mamicode.com
首页 >  
搜索关键字:else    ( 23991个结果
判断路径是目录还是文件
//strPath为需要判断的路径if ( GetFileAttributes(strPath) & FILE_ATTRIBUTE_DIRECTORY ){ MessageBox("Is a Directory");}else{ MessageBox("Is not a Director...
分类:其他好文   时间:2015-01-21 01:08:08    阅读次数:127
[数据结构]一些有意思题目(一)
1,求两个数的最大公约数[cpp]view plaincopyintgcd(inti,intj){while(i!=j){if(i>j){i-=j;}else{j-=i;}}}2,将abcdefg 字符串向左移动三位变成 defgabc方法:第一步:abcdefg ---> cbadefg第二步:c...
分类:其他好文   时间:2015-01-20 21:50:44    阅读次数:207
DELPHI相应鼠标滚轮
在鼠标的MouseWheel事件里写入以下内容if WheelDelta < 0 then SendMessage(scrollBox1.Handle, WM_VSCROLL, SB_LINEDOWN, 0) //向下滚 else SendMessage(scrollBox1.Handle, WM_...
分类:Windows程序   时间:2015-01-20 19:48:06    阅读次数:194
检测主机是否存活的脚本
#!/bin/bash//定义脚本类型foripin`seq1+1254`//将ip尾数定义在1到254之间do//开始执行ping172.16.1.$ip-c1//pingip次数一次if[$?-ne0];then//如果结果不等于0echo172.16.1.$ipisoffline//显示本机是离线的else//否则echo172.16.1.$ipisonline//显示主机是在线的fi//结束循环do..
分类:其他好文   时间:2015-01-20 18:34:45    阅读次数:181
存储过程基础
觉得很有必要把基础的东西写下来备忘。语句块定义:Sql代码decalre --变量声明 var1number(2);--仅声明 var2char(2):=‘11‘;--在声明的同时初始化 begin --语句 end;--语句块结束if语句Sql代码 ifa=1orb=2then elsifc=3then else endif;case语句case语句如果作为分支控制语句,..
分类:其他好文   时间:2015-01-20 18:25:47    阅读次数:113
jQuery 发送验证码倒计时按钮
{ wait:90, hsTime:function(that){ if (this.wait == 0) { $('#hsbtn').removeAttr("disabled").val('重发短信验证码'); this.wait = 90; } else...
分类:Web程序   时间:2015-01-20 17:43:20    阅读次数:218
[C]Week 2 判断
if-else计算时间差 1 int main(){ 2 int hour1, minute1; 3 int hour2, minute2; 4 5 scanf("%d %d",&hour1,minute1); 6 scanf("%d %d",&hour2,...
分类:其他好文   时间:2015-01-20 17:27:18    阅读次数:387
js 常用验证
function errorots(type, id, value) { if (type == 2) { $('div[id^=DivError_]').hide(); $("#DivError_" + id + "").html(value).show(); } else { $('div[id...
分类:Web程序   时间:2015-01-20 15:39:44    阅读次数:179
IOS中的预编译指令的初步探究
目录 文件包含 #include #include_next #import 宏定义 #define #undef 条件编译 #if #else #endif #if define #ifdef #ifndef #elif 错误、警告处理 ...
分类:移动开发   时间:2015-01-20 15:22:42    阅读次数:514
页面视图中的按钮操作指向
页面模板中的操作交互按钮,默认指向该模板对应的控制器。当然也可以指向相对应的路由和视图,只需要在这些类里面定义该操作处理函数即可,例如{{#if isExpanded}} {{body}} Contract{{else}} Show More...{{/if}}App.PostControll...
分类:其他好文   时间:2015-01-20 13:20:08    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!