package Counter; public class Counter { private int counter; private static Counter instance = null; protected Counter() { } public static Counter get...
分类:
编程语言 时间:
2014-08-01 12:59:31
阅读次数:
217
常函数即在类的成员函数参数列表后放置const的函数,常函数的作用是限制函数体对成员变量的修改,此外,常函数也不能调用非 常函数。 1 #include 2 using namespace std; 3 4 class Test 5 { 6 private: 7 int x, y; 8 ...
分类:
编程语言 时间:
2014-08-01 10:42:21
阅读次数:
187
public partial class InterfacePolicyMainServices : ServiceBase { //服务执行间隔(s) /// /// 服务执行间隔(s) /// private co...
分类:
其他好文 时间:
2014-08-01 10:29:21
阅读次数:
159
下面的代码显示了如何利用ColumnView.InitNewRow事件初始化新创建行的PurchaseDate字段:C#1 using DevExpress.XtraGrid.Views.Grid;2 private void gridView1_InitNewRow(object sender, ...
分类:
其他好文 时间:
2014-08-01 04:36:33
阅读次数:
232
1.通过Comparable实现排序package Comparable;import java.util.Arrays;public class ComparableUser implements Comparable { private String id; private int ...
分类:
编程语言 时间:
2014-08-01 04:35:01
阅读次数:
263
Public Class frmDl Dim x As Single = 0 Dim y As Single = 0 Private Sub frmDl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...
在windows phone中,对于一个页面中 有图片列表的,滑动的时候,很容易被误认为是点击了图片,而打开图片详细信息等,原意是滑动列表,由此对图片添加2个事件,来控制其点击行为(滑动的时候,基本不会执行到do clicked something处) private bool _isClickEn...
分类:
其他好文 时间:
2014-07-31 23:50:21
阅读次数:
245
代码部分 using System.Diagnostics; public class CmdHelper { private static string CmdPath = @"C:\Windows\System32\cmd.exe"; /// /// 执行cmd命令 /// 多命令请使用批处理命...
分类:
其他好文 时间:
2014-07-31 23:10:20
阅读次数:
214
定义枚举
public enum YesOrNo {
YES("是") ,
NO("否") ;
private String text ;
private int code ;
YesOrNo(){
this.text = this.name() ;
this.code = this.ordinal() ;
}
YesOrNo(String ...
分类:
编程语言 时间:
2014-07-31 21:03:31
阅读次数:
206
1 package first; 2 3 public class Employee { 4 private String fName, lName; 5 private long _ID; 6 private int workdays; 7 private fl...
分类:
编程语言 时间:
2014-07-31 20:39:07
阅读次数:
302