最近在mac上编译android 版本,各种崩溃让人蛋疼,网上学习了下ndk-stack使用方法。自己备忘下:1.运行终端。跳转到你android sdk 目录 因为你的adb 在里面。如 cd /Users/name/Android/adt-bundle-mac-x86_64-20131030/s...
分类:
其他好文 时间:
2014-07-16 19:11:45
阅读次数:
207
前面LZ已经充分介绍了有关于List接口的大部分知识,如ArrayList、LinkedList、Vector、Stack,通过这几个知识点可以对List接口有了比较深的了解了。只有通过归纳总结的知识才是你的知识。所以下面LZ就List接口做一个总结。推荐阅读:java提高篇(二一)-----Arr...
分类:
其他好文 时间:
2014-07-16 19:07:47
阅读次数:
321
借助LogNet组件,以后查看站点日志,再也不用去服务器下载了日志组件:LogNet.DLL ,引用即可使用写入方法:1、LogNet.Log.WriteLog("日志标题", "日志内容");2、LogNet.Log.WriteLog("日志标题",new Exception());日志内容同时写...
分类:
Web程序 时间:
2014-07-16 18:47:46
阅读次数:
409
Java中常见的Exception种类
1、ClassNotFoundException
2、IOException
3、NoSuchFieldException
4、NoSuchMethodException
5、SQLException
6、RuntimeException...
分类:
编程语言 时间:
2014-07-16 17:31:46
阅读次数:
167
今天在调试MVC的例子的时候,总是出错(An exception of type 'System.Data.ProviderIncompatibleException' occurred in EntityFramework.dll but was not handled in user code)...
分类:
Web程序 时间:
2014-07-16 00:45:23
阅读次数:
340
今天跑了下新搭的一个SSI框架。报如下错误:
严重: Exception sending context initialized event to listener instance of class com.j.chat.upgrade.web.core.SystemLaunchListener
java.lang.IllegalStateException: No WebApplicat...
分类:
移动开发 时间:
2014-07-15 10:43:08
阅读次数:
405
eclipse发生异常:
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.e...
分类:
系统相关 时间:
2014-07-15 10:39:43
阅读次数:
431
先写下这个问题的模式
def preorderTraversal(self, root):
if root == None: return []
re = []
insert root to stack s
while s not empty:
cur_root = top of stack s
s.pop()
how to handle cur_root
how to ...
分类:
其他好文 时间:
2014-07-15 10:17:43
阅读次数:
274
考查代码能力的题目。也可以说是算法水题,呵呵。
推荐新手练习代码能力。
要增加难度就使用纯C实现一下stack,那么就有点难度了,可以使用数组模拟环形栈。做多了,我就直接使用STL了。
#include
#include
#include
#include
using namespace std;
int main()
{
stack forward;
stack ba...
分类:
Web程序 时间:
2014-07-14 13:44:44
阅读次数:
149
在Java中Stack类表示后进先出(LIFO)的对象堆栈。栈是一种非常常见的数据结构,它采用典型的先进后出的操作方式完成的。每一个栈都包含一个栈顶,每次出栈是将栈顶的数据取出,如下: Stack通过五个操作对Vector进行扩展,允许将向量视为堆栈。这个五个操作如下: 操作 说明...
分类:
编程语言 时间:
2014-07-14 13:41:28
阅读次数:
273