如果要对XML文件进行模糊查找的话是一个比较麻烦的事情,Xpath表达式中没有像文件系统中的“*”或"?" 或者有像SQL表达式中的"%",这样的模糊查找的通配符。但是还好,在Xpath的函数中提供了像contains和match这样的函数。contains是一个字符串查找函数 语法是:fn:co....
分类:
其他好文 时间:
2014-10-25 15:44:13
阅读次数:
150
用法:Array.prototype.slice.call(array-like object)// 创建一个类数组对象var alo = {0:"a", 1:"b",2:"c", length:3};// 转化var arr = Array.prototype.slice.call(alo);co...
分类:
编程语言 时间:
2014-10-25 11:47:31
阅读次数:
179
今天开发一个WPF模块需要本地化保存一些用户设置,鉴于数据量不大,用XML。 (要是再小的话可以用Resources 和 Settings)。清晰简短教程移步:http://bdk82924.iteye.com/blog/564353代码如下:using System;using System.Co...
7001. Visible Lattice Points
Problem code: VLATTICE
Consider a N*N*N lattice. One corner is at (0,0,0) and the opposite one is at (N,N,N). How many lattice points are visible from co...
分类:
其他好文 时间:
2014-10-24 11:05:49
阅读次数:
294
1.判断文件是否打开if(a.fail())if(!a.good())if(!a)上面3个等价但上面的无法检测到 : 以不合适的文件模式打开文件失败a.is_open()可以检测到这个错误所以推荐使用 if(!a.is_open())2. if( !fin ) { co...
分类:
编程语言 时间:
2014-10-24 10:45:06
阅读次数:
180
background-attachment-- 定义背景图片随滚动轴的移动方式取值: scroll | fixed | inheritscroll: 随着页面的滚动轴背景图片将移动fixed: 随着页面的滚动轴背景图片不会移动inherit: 继承引用网址:http://www.dreamdu.co...
分类:
Web程序 时间:
2014-10-24 10:29:51
阅读次数:
192
在我们对查询结果进行处理的时候,(比如:sal*13+comm表达式),因为某些员工可能没有奖金,只有13月薪水,这样我们查处的结果会不正确,结果只显示既有奖金有又13薪水的员工,其他的没有,解决办法:可以用函数nvl(查询的字段,当查询结果为空值时的字段),select sal*13+nvl(co...
分类:
数据库 时间:
2014-10-24 09:08:52
阅读次数:
192
参照互联网 - 博客园 -http://www.blogjava.net/EvanLiu/archive/2007/11/12/159884.html。Question:1.Q:大致讲解java集合的体系结构A:List、Set、Map是这个集合体系中最主要的三个接口。其中List和Set继承自Co...
分类:
编程语言 时间:
2014-10-23 22:15:16
阅读次数:
193
题目链接这个题取模的时候挺坑的!!!题意:div(x , b) / mod(x , b) = k( 1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define LL __int64 9 co...
分类:
其他好文 时间:
2014-10-23 20:33:28
阅读次数:
234
K-th NumberTime Limit:20000MSMemory Limit:65536KTotal Submissions:38225Accepted:12417Case Time Limit:2000MSDescriptionYou are working for Macrohard co...
分类:
其他好文 时间:
2014-10-23 16:06:46
阅读次数:
236