Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:
其他好文 时间:
2014-08-19 20:38:25
阅读次数:
239
An array A[1...n] contains all the integers from 0 to n except for one number which is missing.In this problem, we cannot access an entire integer in ...
分类:
其他好文 时间:
2014-08-19 18:49:45
阅读次数:
251
Value of type java.lang.String cannot be converted to JSONObject解析服务器返回的Json串时,JSONObject对象抛出了这个异常。原以为是返回的json格式错误了,仔细对比看不出所以然。至少字符上看是格式没问题的。。那就可能是编码的...
分类:
编程语言 时间:
2014-08-19 18:09:55
阅读次数:
212
内存管理中经常遇到的问题:内存泄露,内存溢出。
在cocos2dx中用的是引用计数和自动释放池的技术,由于熟悉objective-c语言,所以对这两个概念不会很陌生。
一、引用计数
引用计数是自动内存管理的基础:在对象里增加一个引用计数,当外部引用增加时,计数器加1,当外部引用消失时,计数器减1 。
看一下CCObject源码:
cl...
分类:
其他好文 时间:
2014-08-19 16:35:14
阅读次数:
163
09-09 10:19:59.979: E/AndroidRuntime(2767): FATAL EXCEPTION: main09-09 10:19:59.979: E/AndroidRuntime(2767): java.lang.ClassCastException: android.vie...
分类:
移动开发 时间:
2014-08-19 14:27:15
阅读次数:
363
./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory你用的是64位的系统吧?应该是缺少 lib32stdc...
分类:
移动开发 时间:
2014-08-19 07:07:23
阅读次数:
296
指令功能AAA调整加AAD调整除AAM调整乘AAS调整减ADC进位加ADD加AND与ARPL调整优先级BOUND检查数组BSF位右扫描BSR位左扫描BSWAP交换字节BT位测试BTC位测试求反BTR位测试清零BTS位测试置一CALL过程调用CBW转换字节CDQ转换双字CLC进位清零CLD方向清零CL...
分类:
其他好文 时间:
2014-08-18 23:25:13
阅读次数:
427
从SVN上下载项目,所有代码都有下来,在本地编译,java类总是报出n多红叉,惨不忍睹,String cannot be resolved to a type都出来了,以为是jar包未被加载,于是project-properties--java build path -- libraries,删掉已...
分类:
系统相关 时间:
2014-08-18 13:01:02
阅读次数:
248
cannot call methods on draggable prior to initialization; attempted to call 报这个问题的根本原因是因为你的引用文件有问题
,你的jquery 的js或者css样式引用重复导致它读取两次,初始化失败就会报这个错误,好好看看配置文件...
分类:
其他好文 时间:
2014-08-18 12:36:04
阅读次数:
295
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
ClassLoader cl = Test.class.getClassLoader();
while(cl!=null) {
System.out.println(cl.getClas...
分类:
其他好文 时间:
2014-08-18 09:16:23
阅读次数:
214