自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 iostream 一

#include // 是不是太重量级了?class Date{ public: Date(int year, int month, int day) : year_(year), month_(month), day_(day) { } void writeTo(std::ostream& os) const { os << year_ << '

2013-03-27 22:15:49 380

原创 Pointers to Function

Function typeA function type is determined by its return value and parameter listPointers to functiona pointer to funtion is a pointer points to a object of particular  function typebo

2013-03-27 21:13:35 469

原创 Java 中的比较 equals() hashcode() comparable

http://tutorials.jenkov.com/java-collections/hashcode-equals.htmlclass Customer{ private long id; private String Firstname; private String Lastname; public Customer(long id,String Firs

2013-03-19 22:31:18 567

原创 Problem4

Problem Setting:A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99.Find the largest palindrome made from the produ

2013-03-17 12:56:25 425

原创 Const in C++

Why const?Take a look at this snippet of codes for(int i;i<512;i++){ cout<<i<<endl; }There is a problem with it. It is not evident diret from the codes what does the magic number 512 means. In ad

2013-03-14 12:45:59 442

原创 Unit Testing in JUnit

http://www.vogella.com/articles/JUnit/article.html

2013-03-13 21:43:08 441

原创 Java Reflection- Annotations

What is Annotation?Annotations is a new feature from Java 5. Annotations are a kind of comment or meta data you can insert in your Java code. These annotations can then be processed at 1 compile

2013-03-13 21:41:34 485

原创 Java Reflection-classes

Java Reflectionhttp://tutorials.jenkov.com/java-reflection/classes.htmlWhy and where Reflectioin?Reflection allows a program to work with code that may not be present and do so in a re

2013-03-12 20:37:29 502

原创 Problem3

Problem Setting:The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?My thinking:Step 1  How to check factor of one number ?     mode o

2013-03-12 18:27:30 518

原创 创建对象的几种方式

1 Serialization & anti-Serializationpackage Execise;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.ObjectInputStream;import java.io.Ob

2013-03-11 19:23:43 407

原创 Variable

VariableWhat is variable?  (idiom: define variable where they are used)Name for Object that is  a region of memory with certain type.By the time of compilation variable names are converted i

2013-03-10 14:42:35 778

原创 语音和语言处理大师——Fred Jelinek(转载)

转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235作者题记:  没有你,我永远也不可能知道语言还能被机器处理。   ...

2011-03-21 21:41:07 328

原创 String(转载)

转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235作者:每次上网冲杯Java时,都能看到关于String无休无止的争论。还是觉得有必...

2011-03-21 21:17:36 154

原创 J2SE 四大技术体系(转载)

转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235 讲到Java,很容易就想到程序设计语言。实际上,Java技术包含的内容远不止...

2011-03-21 21:12:29 129

原创 Class文件内容及常量池(转载)

 转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235   当JVM运行Java程序的时候,它会加载对应的class文...

2011-03-21 21:04:47 167

原创 Java 虚拟机体系结构(转载)

转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235转载于Heart.X.Raid,http://hxraid.iteye.com/blog/676235众所周知,Java源代码被编译器编译成class文件。而并不是底层操作系统可以直接...

2011-03-21 20:29:32 140

原创 I/O输入流的结构

 Java的输入输出流在io和nio这两个不同的包下面 file类,如果说在java中file不单单是指文件,同时也只目录,这种说法是正确的,但并不准确。file指的其实是文件系统的路径(例如:D:\TDDOWNLOAD和D:\TDDOWNLOAD\TestDaf词汇或者D:\TDDOWNLOAD\TestDaf词汇\TestDaf词汇 下文件夹a)这种文件系统的结构是一种树形的数据结构,...

2011-03-19 15:58:55 117

原创 Design Pattern

了解简单工厂模式(Static Factory Method/Factory Pattern) 简单工厂模式是类的创建模式,由一个工厂类根据传入的参数动态制造出产品对象。把创建对象的责任从自己转移到了工厂上。 模式角色(类比):1 工厂类角色(PC加工厂) 2 抽象产品角色(PC) 3 具体产品角色(Dell PC)  ...

2011-02-18 10:48:15 118

原创 XML语法

概述XML(eXtensible markup Language),DTD(文档类型定义) XML是一种元标记语言 XML描述的是内容结构和内容语义,而不是格式(HTML);拆分了内容和显示(HTML是内容与显示相结合的)  XML是一种树形结构的面向对象编程,我们可以去解析这个树中我们需要的元素来获取信息。 总而言之,XML是棵树,DTD是对XML的规范 ...

2011-02-16 22:00:12 138

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除