Reverse Words in a
String题目链接:http://oj.leetcode.com/problems/reverse-words-in-a-string/ Given an
input string, reverse the string word by word. F...
分类:
其他好文 时间:
2014-07-22 23:13:32
阅读次数:
309
public class ToLog { public static void
main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt");
if(!f.ex...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
300
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-07-22 23:11:32
阅读次数:
388
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node
*head){ if(head->next==NULL||head->next->next==NULL) return
head->next; node...
分类:
其他好文 时间:
2014-07-22 23:11:15
阅读次数:
374
public class Mul { public static void
main(String[] args) { // 第一种方法 for (int i = 1; i <= 9; i++) { for (int j = 1;
j <= 9...
分类:
其他好文 时间:
2014-07-22 23:10:55
阅读次数:
270
流程控制顺序执行流程条件分支流程if(布尔表达式) {}if(布尔表达式) {} else{}
if(表达式1){}else if(表达式2){}else if...else{}switch(int型表达式或变量) // byte short int
char string(1.7之后){ ...
分类:
编程语言 时间:
2014-07-22 23:10:35
阅读次数:
353
string url = Request.Url.ToString();
分类:
Web程序 时间:
2014-07-22 23:10:33
阅读次数:
292
探索javascript中null和undefined的深渊译05 January
2014当讨论JavaScript中的原始数据类型时,大多数人都知道的基本知识,从String,Number到Boolean。这些原始类型相当简单,行为符合常识。但是,本文将更多聚焦独特的原始数据类型Null和Und...
分类:
其他好文 时间:
2014-07-22 23:10:32
阅读次数:
507
// ////下面判断用户是否多选,每选择一次比较一次,看是否超过规定名额 //string
ClickedItem = Request.Form["__EVENTTARGET"];//得到用户点击的是哪个 //ClickedItem = C...
分类:
其他好文 时间:
2014-07-22 23:09:53
阅读次数:
270
浏览器处于安全策略考虑,只允许Javascript关闭由javascript打开的页面,为了用js关闭当前窗口,我们可以这么考虑,这也是最常用的做法。fdsafasfunction
xx(){ // 重置window.opener用来获取打开当前窗口的窗口引用 // 这里置为null,避免I...