码迷,mamicode.com
首页 >  
搜索关键字:return 设置样式 获取样式    ( 61336个结果
判断一整数是不是质数
void IsPrimeInteger(int n){ if(n n) break; if(n%i == 0) return false; } return true;}
分类:其他好文   时间:2014-05-23 11:06:30    阅读次数:178
【LeetCode】Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-05-23 07:43:23    阅读次数:246
return 和 exit 的区别
return 和 exit 的区别 exit()          表示结束当前进程或当前程序,在整个程序中,只要有                   exit,就退出,并将应用程序的一个状态返回给OS。一般   和操作系统相关的是0为正常退出,非0为非正常退出。 return:     表示调用堆栈的返回。例如当程序进入函数调用时,当函数                   ...
分类:其他好文   时间:2014-05-22 06:22:02    阅读次数:258
JS常用表单验证总结
表单验证 function check_1(param){//不为空     if(param==""||param==null){return false;}else{return true;}     } function check_2(param){//长度限制,字母是10个,汉字也是10个     if(param.length>10){return false;}else...
分类:Web程序   时间:2014-05-20 17:15:45    阅读次数:414
javascript学习笔记(一)
一、javascipt的基本语法在基本语法方面与C语言等没有太大区别javascript的语法区别1、变量可以不进行数据类型的定义直接声明,其中用var声明的局部变量,不用var声明的是全局变量function square(num){ total=num1*num2; return total;}...
分类:编程语言   时间:2014-05-20 13:17:43    阅读次数:287
Leetcode:Add Binary
戳我去解题Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".分析:高精度加法,只是将10进制的高精度加法 换成了 2进制的高精度加法首先将 两个...
分类:其他好文   时间:2014-05-20 11:21:52    阅读次数:224
选择器的类型和特殊性
虽然学了一个学期的web,但大部分东西都没塞进脑子里,最近看了一点选择器,总结一下它的种类和特殊性吧。ID相当于是一个人的名字,是唯一的,一个页面中不能有相同的ID名。类选择器用的很多,设置样式离不开它。【注】类名的第一个字符不能用数字派生选择器是允许根据上下文档的上下文关系来确定某个标签的样式eg...
分类:其他好文   时间:2014-05-20 09:45:11    阅读次数:252
div style标签内嵌CSS样式
我们在DIV标签内、SPAN标签内、p标签等html标签内使用style属性直接设置div的样式。一、在标签内使用style设置css样式 - TOP1、实例html源代码片段:设置字体大小14px,颜色为红色 2、div标签内使用style设置样式截图div标签内设置样式截图二、在标签内使用st....
分类:Web程序   时间:2014-05-20 09:30:05    阅读次数:343
Leetcode:Merge Two Sorted Lists
戳我去解题Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.分析:直...
分类:其他好文   时间:2014-05-20 08:52:09    阅读次数:277
Leetcode:Remove Nth Node From End of List
戳我去解题Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. Aft...
分类:其他好文   时间:2014-05-20 08:04:28    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!