题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
install FMRadio.apk的时候一直报这个错。
原因是高通的FMRadio的jni库和apk是分开的,也就是说直接编译生成的apk中是不包含这个库的,因此install的时候会提示没有共享库。对这个apk的办法是采用push的方式。...
分类:
其他好文 时间:
2014-06-28 07:50:05
阅读次数:
240
转自:http://bbs.csdn.net/topics/390034346在java中像ArrayList,HashMap都是现成的,在java.util包中,用的时候直接importjava.util.*就行了。前几天写了一c版的ArrayList,同时欢迎大家指出问题:http://topi...
分类:
编程语言 时间:
2014-06-27 22:26:28
阅读次数:
559
直接上代码:#include #include #include #include #include "base64.h"extern "C" {//Base64 编码int Base64Encode(unsigned char *OrgString, unsigned char *Base64St...
分类:
其他好文 时间:
2014-06-27 14:50:59
阅读次数:
224
1、错误描述
六月 26, 2014 11:26:27 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected collection or sequence. datas evaluated instead to freemarker.core.HashLite...
分类:
其他好文 时间:
2014-06-27 10:01:02
阅读次数:
223
package com.unbank.robotspider.util;import java.util.HashMap;import java.util.Map;import org.jsoup.nodes.Document;import org.jsoup.nodes.Element;impor...
分类:
其他好文 时间:
2014-06-26 19:07:20
阅读次数:
204
如题,不解释
普通青年:
HashMap map = new HashMap;
map.put("name","Lily");
map.put("age","11");
文艺青年:
HashMap map = new HashMap{
{
put("name","Lily");
put("age","11");...
分类:
其他好文 时间:
2014-06-26 11:04:48
阅读次数:
221
1、下载NDK,
??
android-ndk-r9c-windows-x86_64.zip,解压ndk,截图如下:
2、以编译ndk中的sample为例:
导入sample中的hello-jni项目,导入的项目结果如下:
3、右击项目:helloJni-->右击--->properties--->Builder
4、新建Builder---》Program
5、点击...
分类:
移动开发 时间:
2014-06-26 10:14:42
阅读次数:
291
在之前的项目需要用到以自定义类型作为HashMap的key,遇到一个问题:如果修改了已经存储在HashMap中的实例,会发生什么情况呢?用一段代码来试验:import java.util.HashMap;import java.util.Map;public class TestHashMap { ...
分类:
其他好文 时间:
2014-06-25 13:51:12
阅读次数:
218
主要是Java的JNI调用(调用C++),在Windows环境下
分类:
编程语言 时间:
2014-06-25 13:11:26
阅读次数:
291