- 博客(4)
- 收藏
- 关注
转载 弱引用
在计算机程序设计中,弱引用,与强引用相对,是指不能确保其引用的对象不会被垃圾回收器回收的引用。一个对象若只被弱引用所引用,则被认为是不可访问(或弱可访问)的,并因此可能在任何时刻被回收。一些配有垃圾回收机制的语言,如Java、C#、Python、Perl、Lisp等都在不同程度上支持弱引用。 目录 1 垃圾回收2 变种3 示例 3.1 Java3.2 Small
2014-12-07 00:04:12 442
翻译 shell------ conevrt binary to decimal
#!/bin/bash help() { cat b2d-convert binary to decmial USEAGE:b2d [-h] binarynum OPTION:-h text help EXAMPLE:b2d 111010 will return 58 HELP exit 0 } error(
2014-11-12 00:16:57 398
原创 写了单链表的实现
源代码:list.h #ifndef _LIST_H #include #include #include struct node{ int val; struct node * next; }; typedef struct node* Hlist; typedef struct node* Position; void insert(Pos
2014-10-23 00:27:44 356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人