1. 对象属性的使用方法2. 多对象的创建方法3. 匿名对象的创建和使用方法1. 对象属性的使用方法
使用对象调用变量和函数 1. 对象.变量 2. 对象.函数() Dog.java class Dog{ String name ; int age ;
String color ; void ju....
分类:
其他好文 时间:
2014-05-19 11:34:37
阅读次数:
183
public string ReadConfig() { List list = new
List(); ExeConfigurationFileMap file = new ExeConfigurationFileMap(); ...
分类:
移动开发 时间:
2014-05-19 11:21:03
阅读次数:
279
1 public class Console : IRun 2 { 3 public
Console(){ 4 this.TimeOut = 3000; 5 } 6 public string Result 7 ...
分类:
其他好文 时间:
2014-05-19 10:54:35
阅读次数:
202
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 静态成员{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-19 10:38:16
阅读次数:
263
出题:请实现给定String的类定义;分析:注意检查标准类构造注意事项;解题: 1 #include
2 #include 3 /** 4 * 检查是否需要构造函数 5 * 检查是否需要无参构造函数 6 * 检查是否需要成员变量(函数)私有 7 *
检查是否需要在构造函数预初始化成员变量...
分类:
其他好文 时间:
2014-05-19 10:32:35
阅读次数:
217
#define IDM_NEW 0x1002#define IDM_EXIT
0x1003#define IDM_HELP 0x1004#define IDM_ABOUT 0x1005hMenu =
CreateMenu();hFileMenu = CreateMenu();hHelpMenu = ...
分类:
其他好文 时间:
2014-05-19 09:58:20
阅读次数:
251
private void C_txt(string str){ string strname
= "D:\\" + System.DateTime.Now.ToString("yyyymmddhhmmss") + ".txt"; StreamWriter
swWordChange = n...
分类:
其他好文 时间:
2014-05-19 09:53:50
阅读次数:
188
创建数据库的连接 .
?要连接数据库,需要向java.sql.DriverManager请求并获得Connection对象,该对象就代表一个数据库的连接。
?使用DriverManager的getConnectin(String url , String username,String p...
分类:
数据库 时间:
2014-05-19 09:18:49
阅读次数:
458
[System.Runtime.InteropServices.DllImport("winmm.DLL", EntryPoint = "PlaySound",
SetLastError = true)] private static extern bool PlaySound(string sz....
package edu.sjtu.erplab.io;import
java.util.Random;public class RandomTest { public static void main(String[]
args) { int max=20; int...
分类:
编程语言 时间:
2014-05-17 18:04:42
阅读次数:
239