1 start: 2 3 System.Threading.RegisteredWaitHandle rhw = null; 4 new Action(() => 5 { 6 for (var...
分类:
编程语言 时间:
2014-07-26 17:08:12
阅读次数:
311
public class Demo1{ public static void main(String args[]) { //byte<short<int<long<float<double //低进度转高精度,自动转换 double a = 3; System.out.println(a)...
分类:
其他好文 时间:
2014-07-24 22:36:23
阅读次数:
173
原文地址:http://dmitry.baranovskiy.com/post/91403200看了文章中五个小例子,写了写自己的理解#demo1if (!("a" in window)) { var a = 1;}alert(a);#demo1 主要用到javascript执行时候的预解析(...
分类:
编程语言 时间:
2014-07-23 22:27:17
阅读次数:
253
锚点,在地址栏http://localhost:8000/Demo1/js锚点.html#a跳转到指定位置可以是 标签的name也可以是标签的id。曾经看到有锚点的页面,但在代码里看不到name或id为那个锚点的标签,很是费解。在网上一顿查,原来可以使用 window.location.hash这个...
分类:
Web程序 时间:
2014-07-22 23:04:52
阅读次数:
255
1 官网下载Cocos2dx1.1 下载链接:http://www.cocos2d-x.org/download2 VS版本我试了一下,VS2005是没有办法打开Cocos2d-x v3.2的版本,以前的版本没有试过,我用的是VS2013,经测试打开Sln正常3 打开工程并编译Demo1) 打开工程...
分类:
其他好文 时间:
2014-07-21 00:17:47
阅读次数:
434
synchronized 是java语言关键字,当它用来修饰一个方法或者一个代码块的时候,能够保证在同一时刻最多只有一个线程执行该段代码。synchronized 关键字,它包括两种用法:synchronized 方法和 synchronized 块。
本文直接以代码的形式来展示 synchronized 关键字的使用:
【1】synchronized Demo1:...
分类:
移动开发 时间:
2014-07-19 02:11:46
阅读次数:
303
螺旋矩阵是指一个呈螺旋状的矩阵,它的数字由第一行开始到右边不断变大,向下变大,向左变大,向上变大,如此循环。 1 import java.io.*; 2 public class demo1 3 { 4 public static void main(String[] args) 5 ...
分类:
其他好文 时间:
2014-07-18 18:27:55
阅读次数:
339
以下内容适合像我一样的新手!有什么好的建议!还望大家指点!
效果图如下:
第一步:先 新建文件夹 CheckValueLibrary 在新建一个类 PhoneNumberCheck 用于验证 此类继承 ValidationRule 类!
PhoneNumberCheck 类代码如下(正则表达式有错,可借鉴方法):
namespace Demo1.CheckValueLibr...
分类:
其他好文 时间:
2014-07-18 12:34:43
阅读次数:
217
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace demo1{ class Program { static...
分类:
其他好文 时间:
2014-07-18 10:16:30
阅读次数:
188
//Demo1:Declaring an event in an interface and implementing it in //a class.// event_keyword.csusing System;public delegate void MyDelegate(); // de.....
分类:
其他好文 时间:
2014-07-16 15:41:01
阅读次数:
246