Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2014-07-26 01:37:06
阅读次数:
221
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-25 14:18:51
阅读次数:
284
写个 crontab ,命令是类似这样的/path/to/script `date +%Y-%m-%d`直接运行很正常,但是在 crotnab 里就出错。/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'/bin/sh...
分类:
其他好文 时间:
2014-07-25 14:02:15
阅读次数:
225
1:基础数据与封装类型之间的转型
A:基础数据类型--->封装类型(对象类型)
Boolean boolean_1 = new Boolean(true);
byte ---->Byte
short---->Short
char---->Character
int--->Integer
long-->Long
float-->Float
double-->Double...
分类:
其他好文 时间:
2014-07-25 11:24:51
阅读次数:
210
warning: #870-D: invalid multibyte character sequence2011-03-12 9:18warning: #870-D: invalid multibyte character sequenceconst unsigned char mm[]={"中华...
分类:
其他好文 时间:
2014-07-25 02:18:54
阅读次数:
320
第一步,导出旧库mysqldump--default-character-setlatin1-uroot-pXXX--databasedb>/tmp/old.sql第二步,转换编码iconv-tutf-8-fgb2312-c/tmp/old.sql>/tmp/new.sql第三步,导入新库修改new.sql,增加一条sql语句:"SETNAMESutf8;",保存。mysql-hlocalhost-urootdb<n..
分类:
数据库 时间:
2014-07-24 23:54:34
阅读次数:
276
1、Platform Toolset设置Visual Studio 2013 - Windows XP (v120_xp)。2、Character Set设置Use Multi-Byte Character Set。3、添加以下Preprocessor Definitions:NPRT_EXPORT...
Function chinese2unicode(Str) Dim Str_one:Str_one = "" Dim Str_unicode:Str_unicode = "" For i = 1 To Len(Str) Str_one = Mid(Str, i, 1...
分类:
其他好文 时间:
2014-07-24 21:22:16
阅读次数:
262
Swift 的 String 和 Character 类型供了一个快速的,兼容 Unicode 的方式来处理代码字符串常量let strTest = "I'm Swift"字符串空值判断let emptyString = ""if emptyString.isEmpty {2. println....
分类:
其他好文 时间:
2014-07-24 16:57:15
阅读次数:
231
# 使perl程序支持utf8宽字符编码,不添加下面几行打印中文字符时将出现Wide character in print警告或错误。use utf8;binmode(STDIN, ':encoding(utf8)');binmode(STDOUT, ':encoding(utf8)');binmo...
分类:
其他好文 时间:
2014-07-24 05:06:38
阅读次数:
258