码迷,mamicode.com
首页 >  
搜索关键字:while if else    ( 50281个结果
gcc支持的标签
#include #include int main(/*int argc, char const *argv[]*/){ void * target; time_t now = time(NULL); if(now & 1) target = &&odd; else target = &&e...
分类:其他好文   时间:2014-05-18 20:27:53    阅读次数:306
ajax3
var xmlHttp;function sendParam(){ //先获取对象 if(window.ActiveXObject){ xmlHttp = new ActiveXObject("MICROSOFT.XMLHTTP"); }else if(window....
分类:其他好文   时间:2014-05-18 20:18:37    阅读次数:236
java4android (练习使用if else结构)
public class Text01{ public static void main(String args[]){ int score = -1; if(score>85&&score75&&score60&&score=0){ Syst...
分类:移动开发   时间:2014-05-18 19:23:36    阅读次数:260
时序图(Sequence Diagram)
控制焦点Focus on Control 的取值:Alternative fragment(denoted “alt”) 与 if…then…else对应Option fragment (denoted “opt”) 与 Switch对应Parallel fragment (denoted “par...
分类:其他好文   时间:2014-05-17 22:05:02    阅读次数:298
验证字符串空“” 的表达式
if ($(this).val() == "" || $(this).val() == null) { filterString = "";} else { filterString = "^" + replaceRegexStr(filterList[0]) + "$"; for...
分类:其他好文   时间:2014-05-17 22:02:57    阅读次数:253
CF 432B :Football Kit
hash做法:#include#includeconst int Max = 100010;int home[Max],away[Max],hash[Max];int main(){ int n,sum,total; int i,j; while(scanf("%d",&n)!=E...
分类:其他好文   时间:2014-05-17 21:44:37    阅读次数:504
2014年百度之星程序设计大赛 资格赛第一题 (longlong)
解题思路:只要看(A-V)*K 这个公式的更新值是否大于等于A ,大于的话继续循环,否则报错注意一点,数据会爆intWA代码:#includeint main(){ long long n ,m, v, k; int t; scanf("%d",&t); while(t--)...
分类:其他好文   时间:2014-05-17 20:49:27    阅读次数:167
List 循环的高效代码块
高效的代码块: /* Iterator it = al.iterator();//获取迭代器,用于取出集合中的元素。 while(it.hasNext()) { sop(it.next()); } ...
分类:其他好文   时间:2014-05-17 18:28:51    阅读次数:252
verilog HDL 编码风格
1、有意义且有效的名字。2、同一信号在不同层次应该保持一致。3、添加有意义的后缀,使信号的有效性更加明确。4、模块输出寄存器化,使得输出的驱动强度和输入延时是可以预测的。5、使用括号表明优先级。6、每一个if都应该有一个else。如果esle没有任何相应的动作,则用一条空语句。(if。。esle可能...
分类:其他好文   时间:2014-05-17 18:28:13    阅读次数:311
KMP超强模板贴一份
while(scanf("%s",str+1)==1){intn=strlen(str+1);next[1]=0;intj=0;for(inti=2;i2#include3#include4#include5#include6#include7#include8usingnamespacestd;9...
分类:其他好文   时间:2014-05-17 18:14:24    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!