返回目录为什么要对minLength和maxLength这两个方法进行扩展呢,是因为这样一个需求,在用户注册时,可以由用户自己决定他们输入的字符,中文,英文,数字均可,这样做了之后,使用户的体验更好,但对于程序来说就有些麻烦了,因为我们的Length方法只针对英文字符和数字而言的原因1:事实上,真实...
分类:
Web程序 时间:
2014-05-22 00:56:17
阅读次数:
334
class word{public: word(){cout#includeusing
namespace std;class Text{public: static const int a = 1; ///static 数据成员独立与该类存在
///static int b = ...
分类:
编程语言 时间:
2014-05-22 00:51:09
阅读次数:
346
网上转的,留查备用,我服务器装的office2007所以修改的是Microsoft
Office word97 - 2003
文档这一个。ASP.NET生成WORD文档服务器部署注意事项1、Asp.net2.0在配置MicrosoftExcel、MicrosoftWord应用程序权限时error:8...
分类:
Web程序 时间:
2014-05-21 23:41:50
阅读次数:
337
无法打开计算机“.”上的服务控制管理器。此操作可能需要其他特权。无法将类型为“Microsoft.Office.Interop.Word.ApplicationClass”的
COM 对象强制转换为接口类型“Microsoft.Office.Interop.Word._Application”。Re...
一、汇编语言中PTR的含义及作用mov ax,bx
;是把BX寄存器“里”的值赋予AX,由于二者都是word型,所以没有必要加“WORD”mov ax,word ptr
[bx];是把内存地址等于“BX寄存器的值”的地方所存放的数据,赋予ax。由于只是给出一个内存地址,不知道希望赋予ax的,是byt...
分类:
其他好文 时间:
2014-05-21 21:08:19
阅读次数:
1846
1. Post: http://localhost:11804/My/Commentfor
plain html parameter submission, like the GET in URL:Request Header:User-Agent:
FiddlerContent-Length: 3...
分类:
其他好文 时间:
2014-05-21 20:54:49
阅读次数:
346
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-21 20:00:51
阅读次数:
296
public class setZero {
static void print(int [][]a){
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
/*stati...
分类:
其他好文 时间:
2014-05-21 16:16:56
阅读次数:
252
#include
#include
#include
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef unsigned char BYTE;
/*
typedef struct tagBITMAPFILEHEADER {
WORD bfType;
DWORD bfSize;
W...
分类:
其他好文 时间:
2014-05-21 16:08:23
阅读次数:
347
1,使用MD5,本地文件下载完后去文件的md5值与服务器的该文件md5进行比对,一致证明下载完全。2,比较文件的size,文件长度,下载完成取下File.length,与服务器的文件长度比对,一致则下载完全。3,文件命名法,开始下载时,把文件命名为宜别名如xxx.tmp,下载完成后再把文件名称修改过...
分类:
其他好文 时间:
2014-05-21 03:59:00
阅读次数:
197