运行过程1.编写OC程序:.m源文件2.编译.m文件为.o目标文件:cc -c xxxx.m3.链接.o文件为a.out可执行文件:cc xxxx.o -framework Foundation4.执行a.out文件:./a.out#import 的功能跟#include一样,只是更好用,他避免了头...
分类:
移动开发 时间:
2014-07-16 22:49:35
阅读次数:
183
上一章我们分析了Scene与Layer相关类的源码,对Cocos2d-x的场景有了初步了解,这章我们来分析一下场景变换TransitionScene源码。直接看TransitionScene的定义 1 class CC_DLL TransitionScene : public Scene 2 { 3...
分类:
其他好文 时间:
2014-07-16 21:02:03
阅读次数:
239
GNU C Compiler 多平台编译器,是GNU的代表作之一。GCC编译器可以编译链接C\C++\汇编成可执行文件,可执行文件没特殊后缀,看属性。预处理 编译 汇编 链接Gcc通过后缀来区分不同类型文件.c C语言源代码文件.a库文件 由目标文件构成的库文件.C .cc .cxx C++源代码文...
分类:
其他好文 时间:
2014-07-16 19:49:52
阅读次数:
178
1 CUR_DIR = $(shell pwd) 2 3 CFLAGS = -g -Wall 4 GCC = gcc 5 GXX = g++ 6 7 TARGET = exe.out 8 9 SRC_FILES += $(shell find $(CUR_DIR) -name *.cc) \...
分类:
其他好文 时间:
2014-07-12 00:57:34
阅读次数:
216
第 1 部分http://www.ibm.com/search/csass/search/?q=%E4%BA%8B%E5%8A%A1&sn=dw&lang=zh&cc=CN&en=utf&hpp=20&dws=cndw&lo=zh概述Spring 最成功,最吸引人的地方莫过于轻量级的声明式事务管理,...
分类:
编程语言 时间:
2014-07-11 23:48:51
阅读次数:
532
转自http://blog.csdn.net/lucien_cc/article/details/12688477IPv6 SpecRFC 2460 : Internet Protocol, Version 6 (IPv6) SpecificationRFC 5095: Deprecation of...
分类:
其他好文 时间:
2014-07-11 09:08:48
阅读次数:
277
用邻接矩阵写的。自己慢慢理解吧#include #include using namespace std;#define CC(c) memset(c, 0, sizeof(c))const int maxn=5000;int iscut[maxn], g[maxn][maxn], low[maxn...
分类:
其他好文 时间:
2014-07-11 08:45:04
阅读次数:
206
错误例子:error: command 'cc' failed with exit status 1clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard err...
分类:
其他好文 时间:
2014-07-10 19:30:11
阅读次数:
3913
之前很傻,,感觉看不到拓扑是啥东西。。脑子太烂了吧。。。今晚上瞄了一眼就懂了。。我就放代码上来就行了。。注释也不打了,,因为太简单了。#include #include using namespace std;#define CC(i) memset(i, 0, sizeof(i))const in...
分类:
其他好文 时间:
2014-07-09 13:33:27
阅读次数:
235