
编程
elasticNet
这个作者很懒,什么都没留下…
展开
-
java reference
The Java Virtual Machine does not require any particular internal structure for objects. In Sun's current implementation of the Java Virtual Machine, a reference to a class instance is a pointer to原创 2014-04-30 10:48:37 · 671 阅读 · 0 评论 -
java引用,c++指针、引用的理解
C/C++的指针,可以称之为汇编时代的产物,其基本思想是使用“地址编号”对内存进行操作。加上了型别信息后及运算符经重载,“地址编号”升级成为“指针”,我们可以利用指针对一片内存区做“受限”的操作,这对于汇编语言而言,是在降低灵活性的基础上增加了操作的方便性,人类从脱离机器思维的角度上前进一大步。从而也衍生出了“数组和字符串”这样的C语言概念类型,之所以称之为概念,也仅仅是因为这二者本身就是一片有指转载 2014-04-02 22:44:29 · 751 阅读 · 0 评论 -
invokevirtual,invokespecial,invokestatic,invokeinterface
invokevirtual,invokespecial,invokestatic,invokeinterface博客分类: JavaJavaJVM invokevirtual,invokespecial,invokestatic,invokeinterfaceinvokevirtual 调用类实例方法,方法引用 栈:转载 2014-05-05 10:53:24 · 1569 阅读 · 0 评论 -
两个数交换算法(不需要临时变量)
两个数交换算法(不需要临时变量) 两个数交换算法(包含不用第3个变量而直接交换的情况)2006-12-17 20:07对两个数进行交换,在C中可采用指针实现,而在C++可使用引用来实现,无论是用指针还是引用,都要借助第3个变量。本文将介绍两种直接交换的算法******************************* 后附有完整算法和测试程序方法一:采用整数转载 2014-04-05 20:29:59 · 1259 阅读 · 0 评论 -
某IT公司测试实习生线上笔试的部分题目
1、现有一个原创 2014-04-07 12:35:31 · 1894 阅读 · 4 评论 -
编程之美--3.2电话号码对应英文单词
// phoneNumber.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define telLength 2int number[telLength]={4,2};char c[10][10]={ "", "", "ABC", "DEF", "GHI", "JKL", "MNO", "PQRS", "TUV", "WXY翻译 2014-10-29 11:21:43 · 809 阅读 · 0 评论 -
Objective-c strong weak
转:http://stackoverflow.com/questions/9262535/explanation-of-strong-and-weak-storage-in-ios5 觉得讲的很容易理解 The difference is that an object will be deallocated as soon as there are no strong pointer转载 2015-07-15 15:14:31 · 649 阅读 · 0 评论