2015年1月6日

C++ new/new operator、operator new、placement new初识

摘要: 简要释义1.operator new是内存分配函数(同malloc),C++在全局作用域(global scope)内提供了3份默认的operator new实现,并且用户可以重载operator new。1 void* operator new(std::size_t) throw(std::ba... 阅读全文

posted @ 2015-01-06 01:15 kyokuhuang 阅读(513) 评论(2) 推荐(2) 编辑

2014年12月29日

Unity3D 动态创建Mesh(一)

摘要: 1.Mesh、MeshFilter、MeshRenderer关系整理在Unity3D中创建一个Cube,在Inspector可以看到其中含有MeshFilter、MeshRenderer组件。MeshFilter含有一个Public成员 Mesh。在Mesh中存储着三维模型的数据:vertices(... 阅读全文

posted @ 2014-12-29 11:25 kyokuhuang 阅读(19103) 评论(1) 推荐(1) 编辑

2014年12月28日

LeetCode 2.Median of Two Sorted Arrays

摘要: Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run... 阅读全文

posted @ 2014-12-28 18:36 kyokuhuang 阅读(194) 评论(0) 推荐(0) 编辑

LeetCode 1.Two Sum

摘要: Two SumGiven 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... 阅读全文

posted @ 2014-12-28 18:35 kyokuhuang 阅读(102) 评论(0) 推荐(0) 编辑

2014年12月27日

Mac下ApkTool Android反编译

摘要: 1.所需文件下载apktool工具包下载地址:https://code.google.com/p/android-apktool/downloads/list需要下载一个apktool的jar包以及 dependencies(辅助工具,分别有Windows,OSX,Linux版本)2.安装操作将ap... 阅读全文

posted @ 2014-12-27 10:39 kyokuhuang 阅读(1214) 评论(0) 推荐(0) 编辑

2014年12月26日

VC静态连接库注意事项

摘要: vc工程与被链接的静态库(*.lib)文件之间要保持一致:例如: 是共享模式使用MFC dll还是静态模式使用MFC dll?是多线程还是单线程?是调试模式还是release模式?涉及的项目属性配置 /MDd 与/MTd /MD/MT如果不一致,在链接阶段会报告错误,如:LIBCMT.lib(inv... 阅读全文

posted @ 2014-12-26 21:19 kyokuhuang 阅读(332) 评论(0) 推荐(0) 编辑

导航