在ERP实现排程的模块中,我们希望能直观展现个机台每天的排单情况,一直苦恼Delphi没有合适的控件,没办法,先自己动手。效果图:绘制日历关键代码procedure TForm1.DrawCalender;var iDay, iProcess, days: Integer; row,col:In.....
分类:
其他好文 时间:
2014-08-21 14:49:04
阅读次数:
197
使用VALUES将数据插入到数据库表中,每次只能插入一条数据。下面使用循环插入500000条数据到表MEMO中declare typeid_table_type is table of numberindex by binary_integer;name_table_type is table of...
分类:
其他好文 时间:
2014-08-21 13:05:34
阅读次数:
203
首先是包装类型
Long sum = Long.valueOf(0);
long t1 = System.currentTimeMillis();
for (Long i = Long.valueOf(0); i < Integer.MAX_VALUE/2; i++) {
sum += i;
}
t1 = System.currentTimeMillis() - t...
分类:
其他好文 时间:
2014-08-21 11:33:44
阅读次数:
169
他们有本质区别,Integer.valueof(String s)是将一个包装类是将一个实际值为数字的变量先转成string型再将它转成Integer型的包装类对象(相当于转成了int的对象)这样转完的对象就具有方法和属性了。 而Integer.parseInt(String s)只是将是数字的字符...
分类:
其他好文 时间:
2014-08-21 10:59:43
阅读次数:
198
Problem 29
Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5:
22=4, 23=8, 24=16, 25=32
32=9, 33=27, 34=81, 35=243
42=16, 43=64, 44=256, 45=1024
52=25, 53=125, 54=625, 55=312...
分类:
其他好文 时间:
2014-08-21 08:26:53
阅读次数:
177
Description
Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such ...
分类:
其他好文 时间:
2014-08-20 22:41:13
阅读次数:
264
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-08-20 22:28:12
阅读次数:
244
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...
分类:
其他好文 时间:
2014-08-20 22:21:12
阅读次数:
210
D-CityTime Limit: 1000msMemory Limit: 65535KBThis problem will be judged onHDU. Original ID:449664-bit integer IO format:%I64d Java class name:MainLux...
分类:
其他好文 时间:
2014-08-20 20:58:42
阅读次数:
234
N!Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 54172 Accepted Submission(s): 15365
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000...
分类:
其他好文 时间:
2014-08-20 19:39:32
阅读次数:
229