FrmMain.cs中存在问题 1. int i=0 设定为了全局常量且未在类顶部,出现问题时不好查找
i 属于常用临时变量,设定全局变量容易引起混乱 2.定义的全局变量但仅在一处方法中使用,定义全局变量过多
3.变量名及控件名等意义不明确又缺少注释,如顶部定义的全局变量 long length =...
分类:
其他好文 时间:
2014-05-12 13:51:01
阅读次数:
370
原文地址:Authentication options|Basic authorizationIf
you want to use simple binds with user DN and password within a Java component,
in order to authenti...
分类:
其他好文 时间:
2014-05-10 20:27:03
阅读次数:
485
dmidecode # 查看全面硬件信息dmidecode | grep "Product Name"
# 查看服务器型号dmidecode | grep -P -A5 "Memory\s+Device" | grep Size | grep -v Range #
查看内存插槽
分类:
其他好文 时间:
2014-05-10 08:00:29
阅读次数:
540
1 #include 2 #define range 1300000 3 #define
BOOL int //必须把bool,true,false这样表示出来,不然会报编译错误...不知道为什么囧... 4 #define true 1 5
#define false 0 6 BOOL p...
分类:
其他好文 时间:
2014-05-10 06:56:39
阅读次数:
283
很简单的题目,一次过,注意为数组空的时候,应返回0而非null 1 public class
Solution { 2 public int searchInsert(int[] A, int target) { 3 int i; 4 if
(A.length...
分类:
其他好文 时间:
2014-05-10 06:51:21
阅读次数:
288
/** * Created by rabbit on 2014-5-9. */ class
ArrayTest2 { public static void BubbleSort(int [] arr) //创建冒泡排序方法 { for (int
x=0;x<arr.length-1;x++) ...
分类:
编程语言 时间:
2014-05-10 06:39:45
阅读次数:
355
int BubbleSort(int a[]){ int length =
sizeof(a)/sizeof(int); int i,j; int temp; for(i = 0;i i;j--) { if(a[j] <
a[j-1]) { ...
分类:
其他好文 时间:
2014-05-10 03:24:40
阅读次数:
233
聪明的办法是想:求前10位,那只要前8位加起来,进2位就OK。本的办法,就是真的加起来,截前面10位。如我。numList
= str.split()sum = 0for i in range(0,len(numList)): sum += int(numList[i][0:50])
p...
分类:
其他好文 时间:
2014-05-09 23:16:32
阅读次数:
350
获取api的时候,获取回来的特殊对象
$eBayTime = $responseDoc->getElementsByTagName('Timestamp');
object(DOMNodeList) $eBayTime
这种对象,取长度 $eBayTime->length
取值 $eBayTime->item(0)
取值的对象是 object(DOMElement) $eBay...
分类:
其他好文 时间:
2014-05-09 22:07:07
阅读次数:
288
/** * Created by rabbit on 2014-5-9. */ class
ArrayTest2 { public static void SelectSort(int [] arr) //定义选择排序的方法 { for (int
x=0;x<arr.length;x++) { .....
分类:
编程语言 时间:
2014-05-09 19:49:37
阅读次数:
236