很多人没有将C#、.NET Framework(.NET框架)、CLR(Common
Language
Runtime,公共语言运行库)这三者之间的关系区分清楚,认为其版本号是一一对应的。其实不然,.NET框架是一个独立发布的软件包,其包含了CLR、类库以及相关的语言编辑器等工具。C#代码经过编译之...
分类:
Web程序 时间:
2014-05-27 02:05:43
阅读次数:
301
转载自http://www.cnblogs.com/jams742003/category/225387.htmlJson序列化和反序列化指的是:对象序列化为JSON,并可用于从JSON反序列化对象在.net
3.5中名字空间:System.Runtime.Serialization.Json但程序...
分类:
Web程序 时间:
2014-05-24 05:06:17
阅读次数:
377
using System;using
System.Collections.Generic;using System.IO;using System.Linq;using
System.Reflection;using System.Runtime.InteropServices;namespace...
分类:
其他好文 时间:
2014-05-23 10:59:24
阅读次数:
223
在下载,安装前先说下下面几个概念JDK,SDK,JRE,JVM
◆JDK Java Develop Kit (Java 开发包)
◆SDK Software Develop kit, 以前JDK叫做Java software develop kit,后来出了1.2版本后就改名叫JDK了,省时省力, 节约成本。
◆JRE Java runtime environment 我们的最简单的Hell...
分类:
其他好文 时间:
2014-05-22 10:25:23
阅读次数:
387
【题目】
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5...
分类:
其他好文 时间:
2014-05-22 06:44:39
阅读次数:
265
1获得当前屏幕中鼠标的位置
int i = MousePosition.X;
int j = MousePosition.Y;
这是control类中的方法。
2移动鼠标
首先引入dll
[System.Runtime.InteropServices.DllImport("user32")]
private st...
分类:
其他好文 时间:
2014-05-21 07:28:51
阅读次数:
229
对nutch添加中文网站抓取功能。1、中文网页抓取A、调整mysql配置,避免存入mysql的中文出现乱码。修改${APACHE_NUTCH_HOME}/runtime/local/conf/gora.properties################################MySQLproperties################################gora.sqlstore.jdbc.driver=com..
分类:
Web程序 时间:
2014-05-20 19:17:55
阅读次数:
539
题目:
Given an array of integers, every element appears
three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implem...
分类:
其他好文 时间:
2014-05-20 16:22:52
阅读次数:
241
这算是CountDownLatch的一个典型使用场景。kafka.Kafka对象的main方法中与此有关的代码为 // attach shutdown
handler to catch control-c Runtime.getRuntime().addShutdownHook(...
分类:
其他好文 时间:
2014-05-19 16:47:11
阅读次数:
241
RTTI(Run-Time Type
Information,通过运行时类型信息)程序能够使用基类的指针或引用来检查这些指针或引用所指的对象的实际派生类型.RTTI提供了以下两个非常有用的操作符:(1)typeid操作符,返回指针和引用所指的实际类型。(2)dynamic_cast操作符,将基类类型...
分类:
编程语言 时间:
2014-05-19 15:51:05
阅读次数:
312