private hMapFile: THandle; MapFilePointer: Pointer; public { Public declarations } end;var Form1: TForm1;implementation{$R *.DFM}procedure...
分类:
其他好文 时间:
2014-07-10 13:27:29
阅读次数:
217
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 //Student类 8 class Student 9 { 10 private://私有 11 char name[1...
分类:
编程语言 时间:
2014-07-10 13:22:54
阅读次数:
276
内部类是指在一个外部类的内部再定义一个类。内部类作为外部类的一个成员,并且依附于外部类而存在的。内部类可为静态,可用protected和private修饰(而外部类只能使用public和缺省的包访问权限)。内部类主要有以下几类:成员内部类、局部内部类、静态内部类、匿名内部类 为什么需要内部类? .....
分类:
编程语言 时间:
2014-07-10 13:08:39
阅读次数:
221
偶尔在网上看到的,相对比较好的c#端订单号生成规则public class BillNumberBuilder{ private static object locker = new object(); private static int sn = 0; pu...
分类:
其他好文 时间:
2014-07-10 11:51:39
阅读次数:
197
Winform程序2.0的.需要引用Microsoft.mshtml. private void Form1_Load(object sender, EventArgs e) { webBrowser1.Navigate("http://www.ba...
分类:
Web程序 时间:
2014-07-10 11:26:42
阅读次数:
268
背景: private System.Windows.Controls.Border _borderTouch; private bool _mouseDown = false; private System.Windows.Point _currentPoint = new System.Wi.....
分类:
其他好文 时间:
2014-07-10 00:29:50
阅读次数:
287
//音效的音量 int streamVolume; //定义SoundPool 对象 private SoundPool soundPool; //定义HASH表 private HashMap soundPoolMap; /*****************************...
分类:
移动开发 时间:
2014-07-10 00:26:34
阅读次数:
222
此小程序实现了计算器的基本功能:import java.awt.*;import java.awt.event.*;import javax.swing.*;public class SimpleCalc extends JFrame{ private static final long se...
分类:
编程语言 时间:
2014-07-09 23:39:12
阅读次数:
295
class Test { public: Test() : n2(0), n1(n2 + 2) { } private: int n1; int n2;};调用构造函数之后,n1个n2各为多少?分析:构造函数的初始化顺序仅仅取决于成员变量的声明顺...
分类:
其他好文 时间:
2014-07-07 23:45:23
阅读次数:
196
private string fileName = HttpContext.Current.Server.MapPath("~/Student.xml"); protected void Page_Load(object sender, EventArgs e) { if (!I...
分类:
其他好文 时间:
2014-07-07 23:30:32
阅读次数:
260