将myeclipse所配置的tomcat的jdk进行设置:-Xms512m -Xmx512m -XX:MaxNewSize=512m -XX:MaxPermSize=512m,如下图:...
分类:
编程语言 时间:
2014-11-12 10:34:42
阅读次数:
237
用JDK自带的方法: 1 import java.math.BigDecimal; 2 3 public class Test 4 { 5 public static void main(String[] args)throws Exception 6 { 7 BigDeci...
分类:
其他好文 时间:
2014-11-12 01:58:31
阅读次数:
251
********1,jsp页面2,后台struts的action中public boolean saveAttach(TBasePhotoAttach photo) throws Exception{ /*System.out.println(upload1FileName); //f...
分类:
Web程序 时间:
2014-11-11 20:59:07
阅读次数:
233
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为下面几个部分 1、栈区(stack)— 由编译器自己主动分配释放 ,存放函数的參数值,局部变量的值等。其 操作方式相似于数据结构中的栈。 2、堆区(heap) — 一般由程序猿分配释放, 若程序猿不释放,程序结束时可能由O...
分类:
其他好文 时间:
2014-11-11 14:09:22
阅读次数:
179
1.原文问题描述:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -...
分类:
其他好文 时间:
2014-11-11 14:08:11
阅读次数:
168
错误信息:
Exception in thread "main" java.lang.NumberFormatException: For input string: "?6.50685140537736"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDou...
分类:
编程语言 时间:
2014-11-11 12:48:31
阅读次数:
233
Crash Log:
Last Exception Backtrace:
0 CoreFoundation
0x2f087f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3981ece2 objc_exception_throw + 34
2 CoreFound...
分类:
其他好文 时间:
2014-11-11 10:53:21
阅读次数:
203
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-11-11 07:05:12
阅读次数:
190
/*************************************stack.h********************************/
#defineMAXSIZE32
#defineOVERFLOW-1
#defineERROR-2
#defineDATATYPEint
typedefenum{FALSE,TRUE}BOOL;
typedefstruct
{
DATATYPE*data;
inttop;
}STACK;
voidinitStack(STACK*ps)
{
ps-&..
分类:
其他好文 时间:
2014-11-11 02:06:10
阅读次数:
149
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-11-10 23:13:29
阅读次数:
277