1、这里介绍的是实现中文和英文的切换。首先多语言的实现是采用资源文件的形式,建立2个多语言的资源文件。Resource.resx和Resource.zh-CN.resx。2、将多语言这个属性放到用户类中去。public class TUserModels { public str...
分类:
Web程序 时间:
2014-10-09 00:29:07
阅读次数:
445
iOS MD5加密算法 1 #import // Need to import for CC_MD5 access 2 3 4 - (NSString *)md5:(NSString *)str 5 { 6 const char *cStr = [str UTF8String]; 7 ...
分类:
移动开发 时间:
2014-10-08 23:19:57
阅读次数:
234
// 完整显示日期时间 String str = (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS")).format(new Date()); System.out.println(str); // 创建 Cal...
分类:
编程语言 时间:
2014-10-08 17:29:25
阅读次数:
316
/**** 加密 base64encode(utf16to8(str))* 解密 utf8to16(base64decode(str))***/var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0...
分类:
Web程序 时间:
2014-10-08 17:25:55
阅读次数:
355
1.首先介绍一个与test一样的测试方式[ expression ](千万注意expression的前后都有空格,没有空格的话会报错)这个测试方式经常作为if的条件。/home/www这个文件名存在,/home/kkk这个文件名不存在。2.字符串逻辑测试[ -z "string1" ] 字符串str...
分类:
系统相关 时间:
2014-10-08 16:27:45
阅读次数:
217
1. preg_match()函数 preg_match()函数在字符串中搜索模式,如果存在则返回true,否则返回false $pattern='/php/'; $str='php100.com'; echo preg_match($pattern,$str); 输出结果:12. preg_g.....
分类:
Web程序 时间:
2014-10-08 14:36:45
阅读次数:
214
在我的学习过程中,从文件读取数据是一件很麻烦的事,所幸有sscanf()函数。C语言函数sscanf()的用法sscanf() - 从一个字符串中读进与指定格式相符的数据. 函数原型: int sscanf( string str, string fmt, mixed var1, mixed v.....
分类:
编程语言 时间:
2014-10-08 14:12:15
阅读次数:
217
#include #include #include #define MAX_DATA_LEN 1000int findIntNum(char* str)//整数个数{ int i=0,dotPos=0; for(i=0;iIntNum2?IntNum1:IntNum2) + (dotP...
分类:
其他好文 时间:
2014-10-08 02:39:04
阅读次数:
367
输出结果就是223566split就是将一字符串以特定的字符切割成多个字符串,并以一维数组的形式储存我项目中的样例:function SelectCompany(){var str=window.showModalDialog("MessageFrame.htm","","dialogWidth=7...
分类:
Web程序 时间:
2014-10-07 23:54:34
阅读次数:
313
程序设计的三种典范(c++对象模型)1.程序模型就像c中那也的str*系列的函数如:char boy[] = "wcfsf";char p = new char[strlen(boy) + 1];strcpy(p, boy);感觉这个就是在函数内部实现的,没有什么封装的概念2.抽象数据类型(ADT)...
分类:
其他好文 时间:
2014-10-07 18:55:53
阅读次数:
174