using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:
其他好文 时间:
2015-03-30 20:43:58
阅读次数:
119
class Barrel{ public void getOilFromBarrel() { System.out.println("get oil from Barrel ok"); }}class Funnel implements Bottle{ private Barrel aBarrel....
分类:
编程语言 时间:
2015-03-30 20:41:15
阅读次数:
164
http://www.ruanyifeng.com/blog/2012/07/git.html如果你严肃对待编程,就必定会使用"版本管理系统"(Version Control System)。眼下最流行的"版本管理系统",非Git莫属。相比同类软件,Git有很多优点。其中很显著的一点,就是版本的分支...
分类:
其他好文 时间:
2015-03-30 20:30:55
阅读次数:
102
原文: C#中禁止程序多开 方法一、使用Mutex bool createdNew; //返回是否赋予了使用线程的互斥体初始所属权 System.Threading.Mutex instance = new System.Threading.Mutex(true, "MutexName", out ...
1、在window下获取本机ip地址 InetAddress?inet?=?InetAddress.getLocalHost();??
System.out.println("本机的ip="?+?inet.getHostAddress()); 该方法在linux下获取到的ip为127.0.0.1,原因是你linux服务器...
分类:
编程语言 时间:
2015-03-30 19:17:05
阅读次数:
192
问题:
最近程序总会抛出如下异常:
An exception of type'System.Data.SqlClient.SqlException' occurred and was caught.
----------------------------------------------------------------------------------
Type :Syste...
分类:
其他好文 时间:
2015-03-30 18:51:50
阅读次数:
141
1、OracleHelperusing System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web....
分类:
数据库 时间:
2015-03-30 18:26:06
阅读次数:
226
学C#的时候,学到很多没在别的语言里见过的继承手段。比如用Base方法调用基类构造函数。这个好神奇,只要在子类构造函数后面加个base()就能调用基类的不同构造函数。话不多说,贴代码!using System;using System.Collections.Generic;using System...
首先我对上节课老师说的这几个关键字virtual override new 进行了一下测试,用例就是老师上课讲的那个,自己在编译器上又实现了一遍代码如下using System;using System.Collections.Generic;using System.Linq;using Syst...
怎样修复“Windows/System32/Config/System中文件丢失或损坏”故障英文原文引自 http://xphelpandsupport.mvps.org/how_do_i_repair_a_missing_or_cor1.htm此类错误通常说明计算机由于注冊表的原因不能启动,下列操...