自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 fangfang(11)

attributeusing System;using System.Collections.Generic;using System.Runtime.CompilerServices;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{

2016-04-28 17:00:47 275

原创 java date 各种转化

一个普通的str转为date类型。SimpleDateFormat dfs = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");Date begin = dfs.parse("2009-07-10 10:22:21.214"); date类型相减得到毫秒数。long between = 0;Date b

2016-04-27 22:52:10 219

原创 c++和java中的抽象

先贴一个链接http://blog.csdn.net/trojanpizza/article/details/6556604突然想到之前有一次面试的时候考官问了一个问题,你能说说c++的虚函数和纯虚函数是什么吗,她们为什么要存在?今天又回顾了一下。-----------萌萌的分割线------------虚函数虚函数是在c++中的说法,在函数前面加上virt

2016-04-20 15:44:11 333

原创 范范(10)

class BaseNode{}class BaseNodeGeneric{}//concrete typeclass NodeConcrete : BaseNode{}//closed constructed typeclass NodeClosed : BaseNodeGeneric{}//opend constructed typeclas

2016-04-19 17:03:01 195

原创 范范(10)

genericusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace ConsoleApplication4{ struct Perso

2016-04-14 16:29:22 219

原创 ensureCapacity arraylist的扩容

任何一个arraylist对象都有capacity属性,指它的容纳力。可以把一个arraylist看成一个房子,里面的元素是家庭成员。当家里即将迎来一群宝宝时,就要买一个新的大房子来住。这有三个步骤。1.确定新房子的大小(我们可以指定想要的房子的大小,也可以按大多数人换大房子时增加的面积比例来确定新房子的大小,最后买下的房子的实际面积大小应该是他们中更大的那个)。2.买房子

2016-04-12 20:08:47 392

原创 装箱和拆箱

比如说int和Integer,前者是基本数据类型,后者是对象。 int t = 1; t. 后面是没有方法滴。 Integer t =1; t. 后面就有很多方法可让你调用了。自动装箱(成了一个对象!)Integer i = 100; Integer i = Integer.valueOf(100); //等同于上一句 自动拆箱(不再是一个对象!

2016-04-12 19:39:02 214

原创 typedef

上面的定义结构体方法需要用到struct关键字去构建一个变量,下面的做法可以直接使用Books去定义。struct Books { char title[50]; char author[50]; char subject[100]; int book_id; }; struct Books Book1;

2016-04-06 14:52:25 212

原创 范范(8)

delegate arraylist

2016-04-05 22:52:07 244

空空如也

空空如也

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

TA关注的人

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