Chinaunix首页 | 论坛 | 博客
  • 博客访问: 247889
  • 博文数量: 49
  • 博客积分: 110
  • 博客等级: 民兵
  • 技术积分: 510
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-13 00:59
个人简介

make it run,make it better,make it fast. https://github.com/liulanghaitun

文章分类

全部博文(49)

文章存档

2023年(1)

2022年(2)

2020年(4)

2019年(4)

2017年(15)

2016年(3)

2014年(3)

2013年(14)

发布时间:2013-05-10 21:05:03

严格来说,这并不算一个模式,只是利用Java自身的特性(私有化构造函数).如果构造函数私有化,则如下所示: private Singleton(){ }因为构造函数私有化,所以只有在类中可以创建对象。为了获取类中创建的对象,第一类:通过公共静态字段获取我们可以用final进行修饰(final并不是必须的),只是更加明显的标志.........【阅读全文】

阅读(1418) | 评论(0) | 转发(0)

发布时间:2013-04-29 22:28:43

samba主要用于Windows与Linux之间的共享. # lsb_release -a LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description:    Red Hat.........【阅读全文】

阅读(2203) | 评论(0) | 转发(0)

发布时间:2013-04-25 00:35:39

#lsb_release -aLSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarchDistributor ID: RedHatEnterpriseServerDescription:    Red Hat Enterprise Linux Server release 6.3 (Santiago)Release:  .........【阅读全文】

阅读(3982) | 评论(0) | 转发(1)

发布时间:2013-04-10 00:11:06

#include<stdio.h>#include<stdlib.h>/** * 数据交换 */static void swap(int* first,int* second){         int tmp = *first;         *first = *second;       .........【阅读全文】

阅读(1281) | 评论(0) | 转发(0)

发布时间:2013-04-07 23:45:11

递归单链表反转:#include<stdio.h>#include<stdlib.h>#define EXIT_SUCCESS 0#define EXIT_FAILED 1/** * 定义节点 */typedef struct Node{         int data;         struct Node* next;}pNode;.........【阅读全文】

阅读(2606) | 评论(6) | 转发(1)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册