今天在一个类中定义了一个索引器,但是再定义一个叫Item的属性的时候发现编译器报错: 1 namespace Test 2 { 3 class Program 4 { 5 static void Main(string[] args) 6 { 7 ...
分类:
其他好文 时间:
2015-04-10 22:05:53
阅读次数:
119
1 public class Test{2 public static void main(String[] args){3 int num = _;4 if(num<0&&num==Math.abs(num)){5 Syst...
分类:
其他好文 时间:
2015-04-10 21:58:48
阅读次数:
151
public static void main(String[] args) { int triangle[][]=new int[6][];// 创建二维数组//输出的是6阶的,数字6可以随意更改// 遍历二维数组的第一层 for (int i = 0; i < triangle.length.....
分类:
其他好文 时间:
2015-04-10 21:56:27
阅读次数:
96
import java.security.MessageDigest;public class MD5_tes { public final static String MD5(String s){ char hexDigits[]={'0','1','2','3','4','5','6','7'....
分类:
其他好文 时间:
2015-04-10 21:53:58
阅读次数:
123
一:事件(Event)对象 在触发dom事件的时候都会产生一个event对象type 获取事件类型target 获取事件目标stopPropagation() 阻止事件冒泡preventDefault() 阻止事件默认行为 eg:二:string对象lenget 长度indexof() 位置ma.....
分类:
编程语言 时间:
2015-04-10 21:49:29
阅读次数:
157
概念 Redis是一个开源的使用ANSIC语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash....
一. Object 类1. toString 方法,具体查看文档package com.zhihen.object;//默认继承Object//public class TestOjbect extends Object(){//}public class TestObject { priva...
分类:
其他好文 时间:
2015-04-10 21:40:49
阅读次数:
139
import java.util.Scanner;import java.util.*;public class sizeyunsuan { public static void main(String[] args) { Scanner in=new Scanner(Syste...
分类:
其他好文 时间:
2015-04-10 21:38:02
阅读次数:
134
namespace 商场打折结构体{ class Program { struct ZhuangBei { public string name; public double price; public int amount; } static void Main(string[] args) {....
分类:
其他好文 时间:
2015-04-10 20:13:07
阅读次数:
117
namespace 火影忍者多人对战{ class Program { //创建一个Player的结构体 struct Player { public string name; public int hp; public int attack; public int defend; public i...
分类:
其他好文 时间:
2015-04-10 20:10:49
阅读次数:
191