自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏

解决方法如下:项目\属性\配置属性\清单工具\输入和输出\嵌入清单:原来是“是”,改成“否”。

2014-06-23 02:09:53 452

原创 __curl_rule_01__ declared as an array with a negative size

升级xcode5.1之后,cocos2d-x,打包出现__curl_rule_01__ declared as an array with a negative size,解决办法,把Build Settings/Architectures/Vaild Architectures 中的arm64去掉。

2014-03-21 22:26:35 4758

转载 format not a string literal and no format arguments

android-ndk-r9c printf() error "format not a string literal and no format arguments"解决方法可以在 Application.mk 增加 APP_CFLAGS += -Wno-error=format-security具体可以看http://www.cocos2d-x.org/forums/6

2014-03-05 16:19:09 1029

原创 cygwin cocos2d-x testCpp 编译问题

把android-ndk-r8b\sources\cxx-stl\gnu-libstdc++\4.6\libs\armeabi下的libgnustl_static.a拷贝到cocos2d-2.0-x-2.0.3\samples\HelloCpp\proj.android\obj\local\armeabi下

2012-11-26 21:52:49 540

转载 cocos2d-x v2.0 gles v2.0 版本下android交叉编译HelloCpp

在使用cocos2d-x 2.0编译android程序时,遇上下述问题:The import org.cocos2dx.lib cannot be resolved Cocos2dxActivity cannot be resolved to a type Cocos2dxActivity cannot be resolved to a type 原因是在gles2.0时代,所

2012-11-26 21:49:40 1270 1

原创 哈希

hash.henum{ Failed = 0, Succeed, NotFound, alreadyAdd,};typedef struct NODE { int data; NODE* next;}Node;typedef struct hashTable{ Node* table[10];}HashTable;hash.cpp#includ

2012-11-15 22:53:02 319

转载 string类的成员函数

#include using namespace std;class String{public: String(const char* str =NULL); String(const String &another); ~String(); String& operator=(const String &rhs); void Print();protected:pri

2012-11-13 22:15:53 368

转载 堆和栈的区别

一、预备知识―程序的内存分配 一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)― 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) ― 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 3、全局区(静态

2012-11-06 20:14:01 291

转载 C++ sizeof 使用规则及陷阱分析【转】

C++ sizeof 使用规则及陷阱分析【转】http://www.cnblogs.com/chio/archive/2007/06/11/778934.html 摘要:鉴于sizeof为各大软件公司笔试、面试必考题,现收集sizeof的各种用法,尽量做到全面理解,其中例子希望能举一反三。提示:下文例子都经过Visual C++ 6.0验证,平台为win32 Windo

2012-11-01 23:53:13 567

原创 链表逆序

list.htypedef struct Node{ int data; struct Node* next;}ListNode,*List;void printList(List list);List reverseList(List list);list.cpp#include using namespace std;#include "list.h"

2012-10-31 00:15:19 290

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除