functionsearchFile(path:string):Integer;varSearchRec:TSearchRec;found,fileCount:Integer;beginfileCount:=0;found:=FindFirst(Path+'\*.*',faAnyFile,searc...
分类:
其他好文 时间:
2015-03-05 18:41:39
阅读次数:
109
//从服务器上把图片下载到本地并处理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
Integer to Roman问题:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路: 映射方法-->等长数组我的代码:publ....
分类:
其他好文 时间:
2015-03-05 16:52:59
阅读次数:
141
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2015-03-05 14:34:25
阅读次数:
127
Roman to Integer问题:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:转换公式而已 前面的比自己大 相加 前面的比...
分类:
其他好文 时间:
2015-03-05 12:39:02
阅读次数:
126
LeetCode 上不会的Reverse IntegerSingle Number II斐波那契数列 非递归算法Maximum Subarray 维持最大值Integer to RomanSort ColorsPopulating Next Right Pointers in Each Node 怎...
分类:
其他好文 时间:
2015-03-05 12:15:22
阅读次数:
161
1.Deptpackage cn.hxex.springcore.jdbc;public class Dept { private Integer deptNo; private String dName; private String loc; public Int...
分类:
数据库 时间:
2015-03-05 00:00:53
阅读次数:
331
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2015-03-04 21:08:58
阅读次数:
131
键盘输入调用edit函数,比如我们要让用户输入一个长度为5的向量并赋值给变量a,那么可以:a<-vector("integer",5)a<-edit(a)另外也可以用函数fix来直接编辑变量,而不需要再赋值变量。所以上面编辑a变量的命令可以改为:a<-vector("integer",5)fix(a...
分类:
编程语言 时间:
2015-03-04 18:26:40
阅读次数:
214
1.Java支持的数据类型有哪些?什么是自动拆装箱?Java语言支持的8中基本数据类型是:byteshortintlongfloatdoublebooleanchar自动装箱是Java编译器在基本数据类型和对应的对象包装类型之间做的一个转化。比如:把int转化成Integer,char转化成Char...
分类:
其他好文 时间:
2015-03-04 18:23:36
阅读次数:
126