在 DragDrop 的时候,滚动 TreeView
当高度不够的时候
procedure TForm1.TreeView1DragOver(Sender, Source: TObject; X, Y: Integer;State: TDragState; var Accept: Boolean);...
分类:
其他好文 时间:
2014-08-01 12:47:01
阅读次数:
225
问题:将数字转化为罗马数字分析:将所有的数字打表出来class Solution {public: string intToRoman(int num) { char c[10][10][10]={{"0","I","II","III","IV","V","VI","VII","...
分类:
其他好文 时间:
2014-08-01 10:32:21
阅读次数:
215
procedure TPopupMenu.Popup(X, Y: Integer); 这个点是相对桌面的而不是窗体的 GetCursorPos是鼠标的位置 鼠标动这个点就不一样 var p:TPoint;
begin GetCursorPos(p); PopupMenu1.Popup(p.x,p.Y...
分类:
其他好文 时间:
2014-08-01 10:28:41
阅读次数:
430
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-08-01 04:35:11
阅读次数:
219
import javax.mail.Part;
/**
* 顺序查找
*
* @author 曾修建
* @version 创建时间:2014-7-30 下午04:15:10
*/
public class SequentialSearch {
public static void main(String[] args) {
Integer[] a...
分类:
其他好文 时间:
2014-08-01 00:07:30
阅读次数:
295
switch语句用于多分支选择,在使用switch(expr)的时候,expr只能是一个枚举常量(内部也是由整型或字符类型实现)或一个整数表达式,其中整数表达式可以是基本类型int或其对应的包装类Integer,当然也包括不同的长度整型....
分类:
其他好文 时间:
2014-07-31 23:58:00
阅读次数:
709
You are asked to calculate factorials of some small positive integers.InputAn integer t, 1 0){20 int num = Integer.parseInt(bf.readLine())...
分类:
其他好文 时间:
2014-07-31 20:05:57
阅读次数:
165
装箱就是把基础类型封装成一个类。比如把int封装成Integer,这时你就不能把他当成一个数了,而是一个类了,对他的操作就需要用它的方法了。拆箱就是把类转换成基础类型。比如你算个加法什么的是不能用类的,就得把它转换成基本类型,jdk5以后已经可以自动转换了貌似。Integer a=1;//这就是一....
分类:
其他好文 时间:
2014-07-31 16:04:16
阅读次数:
213
分糖果
Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 18 Accepted Submission(s) : 3
Font: Times New Roman | Verdana | Georgia
Font Size: ← →...
分类:
其他好文 时间:
2014-07-31 13:23:36
阅读次数:
199
最近上手学习了Swift的语言,谙习JS的我感觉非常顺眼,在此记录下我的学习过程吧.因为我对Objective-c接触的不多,所以在oc里头使用的东西目前我可能还有很多不知道他的存在.最近在用swift写了一些小示例app,很多地方都用到了基本类型的转换,但是我发现他居然没有Integer.pars...
分类:
其他好文 时间:
2014-07-31 12:58:46
阅读次数:
178