在使用jstl的函数标签库之前需要在页面中引入:1、fn:contains(string, substring) 如果参数string中包含参数substring,返回true。2、fn:containsIgnoreCase(string, substring) 如果参数string中包含参数sub...
分类:
Web程序 时间:
2015-02-05 11:10:34
阅读次数:
174
并不是很精简,随便改改A过了就没有再简化了。1020.Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method:1. Each sub-stri...
分类:
其他好文 时间:
2015-02-05 00:45:46
阅读次数:
306
上一篇介绍了“增”,这一篇就来介绍下一法宝——“删”
实体层和上一篇一样,这里就不多说了。
U层:
Public Class Form1
'删除
Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles btnDelete.Click
Try
...
分类:
数据库 时间:
2015-02-04 13:06:44
阅读次数:
188
#!/usr/bin/perl
use strict;
use warnings;
use threads;
use Thread::Semaphore;
my $max_thread = 5;
my $semaphore = Thread::Semaphore->new($max_thread);
sub TestFun
{
$semaphore->up();
}
for(my $ind...
分类:
编程语言 时间:
2015-02-04 13:03:43
阅读次数:
344
sub是子模块,可以调用但是没有返回值,function是有返回值的。public sub 可以在其它form里调用,而private sub 只能在当前form里调用。vb里的if else ,switch ,for ,while等语句对应语句:If Then [Else ]If Then...
分类:
其他好文 时间:
2015-02-04 12:36:27
阅读次数:
120
题目:《编程之美》P223
string sub_string(const string &s, const int begin,const int end)
{
if (begin > end)
return "";
return s.substr(begin, end);
}
int strings_distance(string s1, string s2)
{
if ...
分类:
编程语言 时间:
2015-02-03 23:07:31
阅读次数:
235
1.具有sub-allocation的SGI内存配置器
内存配置器allocator是stl中的一个模板类,它提供类型化的内存分配以及释放操作。SGI STL的配置器与众不同,其名称是alloc而非allocator,而且不接受任何参数(如vector)。每个SGI STL容器采用的默认内存配置其都是alloc而不是allocator。
首先介绍a...
分类:
其他好文 时间:
2015-02-03 23:00:02
阅读次数:
260
如图: 1 Private Sub Worksheet_Change(ByVal Target As Range) 2 On Error Resume Next 3 Application.EnableEvents = False 4 For Each c In Target...
分类:
其他好文 时间:
2015-02-03 18:41:40
阅读次数:
150
最近几天仔细研究了一下vertical-align这个属性,结果让我大吃一惊,这个很“资深”的CSS标准竟然在各个浏览器里面的表现都各不相同。vertical-align的值有点多,包括 baseline sub supper top text-top bottom text-bottom midd...
分类:
其他好文 时间:
2015-02-03 14:44:20
阅读次数:
233
一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.Sub...