`
phoebird
  • 浏览: 114402 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论
文章列表

c# 结构的定义

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; namespace Queue { public struct Animal {//定义接口 public int legs; public string name; public string color; public Animal(int legs, string name, string color)//结构内的重构 { ...
转载:http://www.blogjava.net/lishunli/archive/2010/01/07/308614.html#_Toc246867271 Struts2下多文件的上传与下载 Googel 标签: 多文件 ;上传 ;下载 ;随意文件 ;java ;Struts2 ;单例 ;

C# HashTable 应用

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace Queue { class HashTableTest { static void Main(string[] args) { Hashtable ht = new Hashtable();//定义hashtable对象 ht.Add("Daiv", 20) ...
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace Queue { class TestArrayList { static void Main(string[] args) { ArrayList list = new ArrayList();//定义集合对象 Console.WriteLine("输入数据"); ...

C# 冒泡排序

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; namespace BubbleSortTest { class BubbleSortTest { public static void Sort(int[] array) { int temp = 0; for (int i = 0; i < array.Length - 1; i++) { ...

数组运用之 队列

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; namespace Queue { class QueueTest//队列类 { int[] array; int length = 0;//保存元素个数,初始化为0 public QueueTest(int num) { array = new int[num];//数组分配空间 } public int Lengt ...

C#属性 定义

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; namespace property { class PropertyTest { private int age;//声明属性 public PropertyTest(int age) {//构造方法 this.age = age; } //传统的访问类的成员变量写法 //public int getAge() ...
var name={//object对象 name:'jackson',age:12 //name:表示属性,jackson表示属性name的值 } //console.log(name.name)//输出属性值 //console.log(name['name'])//输出属性值 //console.log(typeof name)//输出类型 for(var key in name){ console.log('key is '+key+' ,value is '+name[key]) //key is name ,value is jackson //key is ...
         删除注册表中HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session   Manager\PendingFileRenameOperations,清除安装暂挂项目。  
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.     转载; 【系统】 winxpsp3 【工具】 MyEclipse6.5SQLServer2000个人版(升级到sp4  SQL版本8.00.2039)SQLServer 2000 Driver for JDBC 【注意事项】 1.Test.java必须要处理SQLException和ClassNotFoundException两个异常,否则MyEclipse提示这两个异常不可控制; 2 ...
package com.cn.component; import java.lang.reflect.Method; /** * 反射 之 调用 类中的setter、getter方法 * @author Administrator * */ public class InvokeSetGetDemo { /** * @param args */ public static void main(String[] args) { Class<?> c = null;//声明class对象 Object obj = null ...
package com.cn.service; /** * 接口对象 * @author Administrator * */ public interface China { public static final String NATIONAL="China";//常量 public static final String AUTHOR="老李";//接口中的常量 public void sayChina();//方法,实现接口必须重写 public String sayHello(Stri ...
package com.cn.service; public interface China { public static final String NATIONAL="China"; public static final String AUTHOR="老李"; public void sayChina(); public String sayHello(String name,int age); } package com.cn.model; import com.cn.service.C ...
package com.cn.service; public interface China { public static final String NATIONAL="China"; public static final String AUTHOR="老李"; public void sayChina(); public String sayHello(String name,int age); } package com.cn.model; import com.cn.service ...
新建远程站点:zh_properties 输入: http://propedit.sourceforge.jp/eclipse/updates/ 当我们在资源文件中输入汉字如: HelloWorld=你好,世界! 单击右键Unicode 显示 HelloWorld=\u4f60\u597d\uff0c\u4e16\u754c\uff01 将该代码负责,替换 HelloWorld=你好,世界! 就ok 啦!
Global site tag (gtag.js) - Google Analytics