what is different between %s and %0s?(%s和%零s)%s prints the string as it is with spaces at the begining if string contentsare less than string variable...
分类:
其他好文 时间:
2015-03-05 19:02:18
阅读次数:
855
用JSON或者XML等,不存在此问题,或者说相对容易解决此问题。 以下是指特定用Soap来进行序列化和反序列化中碰到的。 在一个程序集中: class Program{ static void Main(string[] args) { //Serialize(); A a = new A(); s...
分类:
其他好文 时间:
2015-03-05 18:56:35
阅读次数:
126
利用java生成MD5串。1.利用java的MessageDigest 生成字节数组2.将字节数组转化成16进制数字字符串直接上代码 1 //10进制和16进制映射表 2 String[] strDigits = { "0", "1", "2", "3", "4", "5", "6", "7", "...
分类:
编程语言 时间:
2015-03-05 18:55:35
阅读次数:
168
这里主要说的是同名异常: [ServiceContract] public interface IUserInfo { [OperationContract] string ShowName(stri...
分类:
其他好文 时间:
2015-03-05 18:53:17
阅读次数:
144
温故知新,常用常新//1、创建常量字符串。NSString *astring = @"This is a String!";//2、创建空字符串,给予赋值。NSString *astring = [[NSString alloc] init]; astring = @"This is a Strin...
分类:
移动开发 时间:
2015-03-05 18:50:38
阅读次数:
182
1.Length --取字符串长度string x = Console.ReadLine(); int i = x.Length; Console.WriteLine(i);执行结果: 2.Substring(从哪一位开始,截取几位) --截取字符串,从第六位往后截取3位,包括空格在内st...
分类:
其他好文 时间:
2015-03-05 18:43:40
阅读次数:
133
一、 JVM的生命周期1. JVM实例对应了一个独立运行的java程序它是进程级别a) 启动。启动一个Java程序时,一个JVM实例就产生了,任何一个拥有public static void main(String[] args)函数的class都可以作为JVM实例运行的起点b) 运行。main()...
分类:
其他好文 时间:
2015-03-05 18:42:00
阅读次数:
208
functionsearchFile(path:string):Integer;varSearchRec:TSearchRec;found,fileCount:Integer;beginfileCount:=0;found:=FindFirst(Path+'\*.*',faAnyFile,searc...
分类:
其他好文 时间:
2015-03-05 18:41:39
阅读次数:
109
C#实现如下using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;namespace DEMO{ class Darrenstring { ...
//从服务器上把图片下载到本地并处理procedureTForm3.ImgShow(filename:string);varp_w_picpathStream:TMemoryStream;jpg:TJpegImage;imgFile:string;Bmp1,Bmp2:TBitmap;w1,h1:Integer;begintry//从网上将图片下传到本地,在下载时写入数据流imgFile:=‘http://192.168.X.X/Imag..
分类:
Web程序 时间:
2015-03-05 17:25:06
阅读次数:
142