今天写了个java的小程序在运行的时候抛出下面的异常:java.lang.NumberFormatException:
For input string: "" 。定位到源程序中出错的地方: String[] cols = key.toString().split(" ");
return...
分类:
编程语言 时间:
2014-05-23 03:50:00
阅读次数:
325
1、典型的Point结构体 1 struct point { 2 double x, y; 3
point(double _x = 0, double _y = 0): x(_x), y(_y) { 4 } 5 void input() { 6
sca...
分类:
其他好文 时间:
2014-05-23 03:40:15
阅读次数:
362
Given an input string, reverse the string word
by word.For example,Given s = "the sky is blue",return "blue is sky the". 1
Class Solution{ 2 public: ....
分类:
其他好文 时间:
2014-05-23 02:59:21
阅读次数:
260
var FormDeal = {
/**
* 功能 :将表单的所有input都设为可编辑的
*@param 要操作表单的id
*/
formWritable: function (formId) {
$("#"+formId+" input,textarea").removeAttr("readonly");
$("#"+formId...
分类:
Web程序 时间:
2014-05-23 01:53:44
阅读次数:
318
【题目】
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
The functi...
分类:
其他好文 时间:
2014-05-23 00:17:12
阅读次数:
364
题目描述 Description
在n×n格的棋盘上放置彼此不受攻击的n个皇后。按照国际象棋的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子。n后问题等价于再n×n的棋盘上放置n个皇后,任何2个皇后不妨在同一行或同一列或同一斜线上。
输入描述 Input Description
给定棋盘的大小n (n ≤ 13)
输出描述 Outp...
分类:
其他好文 时间:
2014-05-22 23:16:50
阅读次数:
346
Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down?
Input
Input starts with an integer T (≤ 11000), denot...
分类:
其他好文 时间:
2014-05-22 22:59:18
阅读次数:
354
题目:
Problem Description
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).
Input
输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统...
分类:
其他好文 时间:
2014-05-22 17:31:06
阅读次数:
307
在C++中很多的东西都传值的,. C++中的对象之间的copy是传值的 ,
他不想java那样,对象之间传递的引用 , 或者说是java对指针进行了封装 , 禁止了一些不安全的操作对于C++而言 ,
对象之间传递引用或者是指针是最好不过的.在C++中的this与java中的明显不同, java中的t...
分类:
编程语言 时间:
2014-05-22 15:00:16
阅读次数:
304
一个功能复选框勾选时给input表单赋值,复选框取消时将表单值清除。功能:复选框勾选时给input表单赋值,复选框取消时将表单值清除。实现源码:cyfID为复选框的id$("#cyfID").click(function(){var
ischeck=$(this).attr("checked");i...
分类:
Web程序 时间:
2014-05-22 14:18:29
阅读次数:
271