最近把移动硬盘上的一个Android项目复制到笔记本上面,import后项目文件夹始终有一个红色叹号,console里面提示“archive
for required
library...”,原来是libs\android-support-v4.jar文件被损坏了,重新下载并覆盖这个文件,恢复正常了...
分类:
其他好文 时间:
2014-05-09 08:39:03
阅读次数:
272
package com.test.thread;public class TestThread {
public static void main(String[] args) { TestThread testThread = new
TestThread(); ...
分类:
编程语言 时间:
2014-05-09 08:20:06
阅读次数:
334
使用IO模拟器,应用沙盒的根路径为:/Users/apple/Library/Application Support/iPhone
Simulator/6.0/Applications(6.0为模拟器的版本)1、获取应用沙盒目录 利用沙盒根目录拼接“Documents”字符串
NSString * ...
分类:
移动开发 时间:
2014-05-09 07:31:58
阅读次数:
416
public class sample{public static void
main(String[]
args){//得到类的简写名称System.out.println(sample.class.getSimpleName());//得到对象的全路径System.out.println(sam...
分类:
其他好文 时间:
2014-05-09 07:17:59
阅读次数:
242
C语言的存储类型可分为:extern、auto、static、register。
外部变量定义在函数之外,通过同一个名字对外部变量的所有引用(即使这种引用来自于单独编译的不同函数),实际上都是引用同一个对外部变量的所有引用(C标准中把这一性质称为外部链接)。因此外部变量可以在全局范围内访问。
getChar.c:
#include
#include
exter...
分类:
编程语言 时间:
2014-05-09 06:26:36
阅读次数:
330
这边主要介绍几个门户的js库
1. JX(腾讯)
官网地址:http://alloyteam.github.io/JX/#home
JX 是一个类似 Google Closure Library 的 Web 前端开发框架,服务于 WebQQ 等大规模的 WebApp。
JX 是模块化的非侵入式Web前端框架,开发于2008年,并于2009年开源于GoogleCode ,...
分类:
Web程序 时间:
2014-05-09 06:21:11
阅读次数:
446
import java.lang.reflect.Field;
public class ReflectClass3 {
/**
* @param args
*/
public static void main(String[] args) {
Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:
编程语言 时间:
2014-05-09 06:18:19
阅读次数:
580
官网 http://www.rust-lang.org/下载链接
http://static.rust-lang.org/dist/rust-0.10-i686-unknown-linux-gnu.tar.gzrust有mac,windows,mac版本
,试了windows和linux版本,win...
分类:
其他好文 时间:
2014-05-09 06:00:52
阅读次数:
299
这个是c++很基础的东西,等用到时又有点晕,翻开primer/*1.static不能声明成const和虚函数2.const
static可以初始化,但还是需要在类外定义3.类的static必须定义,并且在类外定义,把内存分配在静态存储区,如果只声明不定义出现无法解析的外部命令我猜是他是在编译时期分配...
分类:
编程语言 时间:
2014-05-09 05:59:22
阅读次数:
305
C风格的强制类型转换(Type Cast)很简单,不管什么类型的转换统统是:TYPE b =
(TYPE)a。C++风格的类型转换提供了4种类型转换操作符来应对不同场合的应用。const_cast,字面上理解就是去const属性。static_cast,命名上理解是静态类型转换。如int转换成cha...
分类:
编程语言 时间:
2014-05-09 05:54:59
阅读次数:
376