预备知识—程序的内存分配一个由C/C++编译的程序占用的内存分为以下几个部分栈区(stack)— 由编译器自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。堆区(heap)— 一般由程序员分配释放,若程序员不释放,程序结束时可能由OS回收。注意它与数据结构中的堆是两回事...
分类:
其他好文 时间:
2014-09-14 20:40:47
阅读次数:
431
Comparing Struts 1 and 2
Edit
Page Browse
Space Add
Page Add
News
Feature
Struts 1
Struts 2
Action classes
Struts 1 requires Action classes to ext...
分类:
其他好文 时间:
2014-09-14 18:04:57
阅读次数:
359
查看Mat文档时里面是这么描述Shallow Heap的:Shallowheap is the memory consumed by one object. An object needs 32 or 64 bits(depending on the OS architecture) per reference, 4 bytes per Integer, 8 bytesper Long, etc....
分类:
编程语言 时间:
2014-09-14 16:45:47
阅读次数:
204
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4994题目意思:有 n 个 heap(假设从左至右编号为1~n),每个 heap 上有一些 objects。有两个player,轮流从左至右的 heap 上取走 object(1 2 #include ....
分类:
其他好文 时间:
2014-09-14 12:38:57
阅读次数:
185
* 栈stack和堆heap的区别:原始值是存储在栈中的简单数据段,也就是说,它们的值直接存储在变量访问的位置;引用值是存储在堆中的对象,也就是说,存储在变量处的值是一个指针,指向存储对象的内存处。如果一个值...
分类:
Web程序 时间:
2014-09-14 11:34:57
阅读次数:
219
详细讲解如何进行Tangent Space的计算,并最终实现Bump Mapping...
分类:
移动开发 时间:
2014-09-13 22:49:36
阅读次数:
324
今天有同事反映最近几天的数据在oracle中查不到。检查TT的错误日志显示:TT5211: TT5211: Oracle out of resource error in OCIStmtExecute(): ORA-01536: space quota exceeded for tablespace 'TBSLOG' rc = -1 -- file "bdbTblH.c",
lineno 24...
分类:
其他好文 时间:
2014-09-13 21:30:45
阅读次数:
191
Sort a linked list in O(n log n) time using constant space complexity./** * Definition for singly-linked list. * struct ListNode { * int val; * ...
分类:
其他好文 时间:
2014-09-13 21:25:35
阅读次数:
288
Sort a linked list inO(nlogn) time using constant space complexity. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int ...
分类:
其他好文 时间:
2014-09-13 20:08:05
阅读次数:
204
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space? 1 /** 2 * Definition for singly-linked l....
分类:
其他好文 时间:
2014-09-13 20:06:35
阅读次数:
184