码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
对象结构
以下演示了对象写法在对数据更新时,会按属性设定长度进行检查,如果超过,会抛出异常,string默认长度为30 [CRL.Attribute.Table(TableName="table1")]//映射表名为table1 public class ModelTest:CRL.IModelB...
分类:其他好文   时间:2015-02-11 16:26:24    阅读次数:116
system 函数
相关函数:fork, execve, waitpid, popen头文件:#include 定义函数:int system(const char * string);函数说明:system()会调用fork()产生子进程, 由子进程来调用/bin/sh-c string 来执行参数string 字符...
分类:其他好文   时间:2015-02-11 16:24:59    阅读次数:174
随机生成UUID(GUID)的方法
- (NSString *)UUID{ CFUUIDRef uuid_ref = CFUUIDCreate(NULL); CFStringRef uuid_string_ref= CFUUIDCreateString(NULL, uuid_ref); CFRelea...
分类:其他好文   时间:2015-02-11 16:23:41    阅读次数:214
数据有效性检测
以下演示了数据有效性检测数据校验可以保证数据在插入或更新不符合规则时,终止操作,保证数据完整性 //ProductData 限定了 BarCode不能为空 public override string CheckData() { if (string.IsNullOr...
分类:其他好文   时间:2015-02-11 16:22:41    阅读次数:145
PostSharp Aop(安装)
项目中 Business层,大多数代码都是public static fun(string xx) 这样的代码,没有接口。AOP 对象都是依赖于接口的,对于这种无接口的类有没有办法AOP。 答案有肯定的。可以用PostSharp。 AOP 依赖接口的我称之为动态AOP,编译时(MSI...
分类:其他好文   时间:2015-02-11 16:19:36    阅读次数:302
第一个出现的非重复的单词
/* 第一个出现的非重复的单词 */ //1.将字符串放到可变数组中 NSString *string = @"mabcacdeadbeffg"; NSMutableArray *mutableArray = [NSMutableArray array]; for (int i = 0;...
分类:其他好文   时间:2015-02-11 16:13:15    阅读次数:102
(转)asp.net 使用cookie完成记住密码自动登录
代码如下复制代码 string username = this.txtUserName.Text;//用户名 string password = this.txtPassword.Text;//密码 if (UserManager.LoginValidate(username, password) ...
分类:Web程序   时间:2015-02-11 16:08:06    阅读次数:146
java中MessageDigest加密工具类
import java.security.MessageDigest;public class EncryptionKit { public static String md5Encrypt(String srcStr){ return encrypt("MD5", sr...
分类:编程语言   时间:2015-02-11 16:04:48    阅读次数:149
leetcode------Multiply Strings
标题:Multiply Strings通过率: 20.8%难度:中等Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be ...
分类:其他好文   时间:2015-02-11 16:00:30    阅读次数:115
数据类型之记录(record)..With XXX do begin... end;
123456789101112131415161718192021222324252627282930313233typeMailingListRecord = record{ 声明记录用关键字record}FirstName: string;LastName: string;Address: st...
分类:其他好文   时间:2015-02-11 15:54:07    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!