智慧 + 毅力 = 无所不能

正确性、健壮性、可靠性、效率、易用性、可读性、可复用性、兼容性、可移植性...

导航

上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 97 下一页

2015年2月27日

摘要: 转自:http://studygolang.com/topics/548例子Packages.go:package mainimport ( "fmt" "math/rand")func add(x int, y int) int { return x + y}func main(... 阅读全文

posted @ 2015-02-27 17:23 Bill Yuan 阅读(501) 评论(0) 推荐(2) 编辑

摘要: 转自:http://studygolang.com/topics/549Go 没有类,但可以在结构体类型上定义方法。package main import ( "fmt" "math" )type Vertex struct { X, Y float64 }func (v Vertex)... 阅读全文

posted @ 2015-02-27 17:11 Bill Yuan 阅读(425) 评论(0) 推荐(0) 编辑

2015年2月4日

摘要: 转自:http://blog.csdn.net/zhaozy55555/article/details/8557175project就是一个项目,或者说工程,一个project可以对应多个target,比如一个xxx游戏的project,有free版的target,收费版的,或者还有什么节日版,pr... 阅读全文

posted @ 2015-02-04 15:48 Bill Yuan 阅读(5519) 评论(0) 推荐(0) 编辑

摘要: 转自:http://www.th7.cn/Program/IOS/201408/268371.shtml问题描述:为了适配iPhone 5s的64位处理器,在编译选项中加入了arm64架构。但是发现工程在真机上可以编译通过但是在模拟器上却未编过。问题解决:经研究在编译选项中再加入x86_64架构,重... 阅读全文

posted @ 2015-02-04 15:45 Bill Yuan 阅读(11597) 评论(0) 推荐(0) 编辑

2015年1月30日

摘要: 转自:http://www.cnblogs.com/meteoric_cry/p/4171535.html2015年2月1日后新提交的应用必须要支持64位架构。我所使用的是cocos2d-x V2.0版本,而且源码有部分代码是修改过的。好在cocos2d-x官方已经放出了一个支持64位的2.2.6版... 阅读全文

posted @ 2015-01-30 15:47 Bill Yuan 阅读(3801) 评论(0) 推荐(0) 编辑

2015年1月10日

摘要: 转自:http://www.2cto.com/os/201308/238936.html在linux下制作动态库*.so。1、linux下动态库的制作//so_test.h#include "stdio.h"void test_a();void test_b();void test_c();//te... 阅读全文

posted @ 2015-01-10 11:29 Bill Yuan 阅读(1828) 评论(0) 推荐(0) 编辑

2015年1月5日

摘要: 转自:http://www.shaoqun.com/a/105310.aspx在Android中调用动态库文件(*.so)都是通过jni的方式,而且往往在apk或jar包中调用so文件时,都要将对应so文件打包进apk或jar包,工程目录下图:以上方式的存在的问题: 1、缺少灵活性比较类似静态加载... 阅读全文

posted @ 2015-01-05 10:03 Bill Yuan 阅读(30983) 评论(0) 推荐(0) 编辑

摘要: 转自:http://www.yxkfw.com/?p=72231. 在Eclipse中创建项目:TestJNI2. 新创建一个class:TestJNI.javapackage com.wwj.jni;public class TestJNI { public native boolean I... 阅读全文

posted @ 2015-01-05 09:37 Bill Yuan 阅读(34851) 评论(0) 推荐(0) 编辑

2015年1月4日

摘要: 转自:http://www.cnblogs.com/xioapingguo/p/4037323.htmlstatic unsigned long _maxUnzipBufSize = 0x500000;static bool unzip(const char *zipPath,const char... 阅读全文

posted @ 2015-01-04 09:54 Bill Yuan 阅读(1595) 评论(0) 推荐(0) 编辑

2014年12月5日

摘要: 转自:http://blog.csdn.net/tyxkzzf/article/details/38703883CCSprite* getHighlightSprite(CCSprite* normalsprite) { if ( !normalsprite) { return ... 阅读全文

posted @ 2014-12-05 14:03 Bill Yuan 阅读(3948) 评论(0) 推荐(0) 编辑

上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 97 下一页