/// /// The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command...
分类:
其他好文 时间:
2015-01-20 13:45:21
阅读次数:
139
String对象是不可改变的,每次使用String类中的方法时,都要在内存中创建一个新的字符串对象,这就需要为该新对象分配新的空间。在需要对字符串执行重复修改的情况下,与创建新的String对象相关的系统开销可能会非常昂贵。如果要修改字符串而不创建新的对象,则可使用StringBuilder类。.....
分类:
其他好文 时间:
2015-01-20 13:41:05
阅读次数:
144
1、bean to xml:
public static void main(String[] args) {
List list = new ArrayList();
String auth_code = "hunan_auth_code";
JydInfo clws1 = new JydInfo("100101","黑猪","100","2000","12.5","11111111...
分类:
其他好文 时间:
2015-01-20 12:10:18
阅读次数:
174
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BAN...
关于Silverlight或WPF动态绑定图片路径问题,不用Converter完美解决,可想,一个固定的字符串MS都能找到,按常理动态绑定也应该没问题的,只需在前面标记它是一个Path类型的值它就能找到了。具体问题:1.固定的图片路径是可以的,如下:2.绑定的Path是一个String类型的图片路径...
这是一个方法,返回IListpublic IList GetAtAGlanceReportByCondition(int? supplierId, string container, DateTime? ETA, string FOBPoint, string HBLNum, DateTime? m...
分类:
其他好文 时间:
2015-01-20 11:40:59
阅读次数:
109
三、Action访问环节
Action 有三种书写方式
Action 有三种配置方式
1、Action三种书写方式
第一种 用户定义Action类,可以不去实现任何接口,继承任何父类
第二种 用户定义Action类,实现Struts2 提供Action接口 (更规范 Action写法 )
public static final String SUCCESS = "succ...
分类:
其他好文 时间:
2015-01-20 10:32:44
阅读次数:
220
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I ...
分类:
其他好文 时间:
2015-01-20 10:29:45
阅读次数:
133
C++中的strrev函数
C++中有函数strrev,功能是对字符串实现反转,但是要记住,strrev函数只对字符数组有效,对string类型是无效的。
具体见下面代码,其中我还自己实现了一下:
#include
#include
using namespace std;
int main()
{
char s[100] = "china"...
分类:
编程语言 时间:
2015-01-20 10:28:39
阅读次数:
359
??
1.16 迭代法计算B的N次方
先是Java实现的递归法和迭代法:
public class Test {
public static void main(String args[]){
int ex,ey;
ex = expt(122,4);
ey = expt_iter(122, 4, 1);
System.o...
分类:
其他好文 时间:
2015-01-20 09:02:53
阅读次数:
167