码迷,mamicode.com
首页 >  
搜索关键字:line    ( 28191个结果
LeetCode 011 Container With Most Water
【题目】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
分类:其他好文   时间:2014-05-16 01:32:47    阅读次数:406
write()和prinln()的区别?
输出数字不同: write()输出数字转换为字符,println原样输出。输出null不同: write()输出引用类型的时候调用的toString转换为String数据,因此如果对象为null那么直接抛出空指针异常。Println直接输出null。
分类:其他好文   时间:2014-05-15 22:28:14    阅读次数:287
页面加载完成后执行的JS
$(document).ready(function() { alert("!@221212121212");}); window.onload = function(){ alert("!@22245624562621212");} function init(){alert("!@5446...
分类:Web程序   时间:2014-05-15 21:21:10    阅读次数:390
Pipe 简单的例子
如下是Pipe的一个简单的例子。管道的通信是单项的。只能一端写,一端读。管道通信只能在有共同祖先的两个进程之间。在两个进程中,进行数据传送。pipe(fd)创建管道,fd【0】作为read端,fd【1】作为写入端。当fd[1]不存在的时候,认为已经读到结尾,read返回0.如果fd[1]存在,写入数据后,将写入端关闭,但是数据一直存在,直到读出。数据总是写在管道的尾部,而读的时候,则是从头部开始读...
分类:其他好文   时间:2014-05-15 20:06:03    阅读次数:264
hust 1039 Telephone Lines
题目描述Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay for some of the ca...
分类:其他好文   时间:2014-05-15 18:03:37    阅读次数:292
html 12 行 快 转换 段落 文字
display: block;inline;none;inline-block;段落缩进 text-indent:20pxfont: font-style font-weight font-size line-height font-familyfamily: "xxx","xxxx","xxxxx...
分类:Web程序   时间:2014-05-15 17:52:29    阅读次数:380
信息写入记事本方法
/// /// 信息写入记事本 /// /// /// public static void Write(string text, string path) { try { DateTime newDat...
分类:其他好文   时间:2014-05-15 17:51:53    阅读次数:262
eclipse中为了format的代码更加好看,少换行,可以设置java、xml、jsp的代码line width。 .
http://blog.csdn.net/hdfyq/article/details/5821038
分类:编程语言   时间:2014-05-15 14:10:27    阅读次数:312
启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”的解决方法!
原因:eclipse的版本与jre或者jdk版本不一致对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位。这种错误的原因可能性比较大,不排除其他因素
分类:系统相关   时间:2014-05-15 13:52:20    阅读次数:448
Leetcode 数 String to Integer (atoi)
1.注意规则 2.注意最小的负数的绝对值比最大的正数的绝对值大1,所以 line 13: (str[i] - '0') > INT_MAX%10不能取等号...
分类:其他好文   时间:2014-05-14 23:52:26    阅读次数:478
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!