#include
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-12 14:12:35
阅读次数:
379
【makefile的规则】
在讲述这个makefile之前,还是让我们先来粗略地看一看makefile的规则。 target可以是一个object
file(目标文件),也可以是一个执行文件,还可以是一个标签(label)。对于标签这种特性,在后续的“伪目标”章节中会有叙述。 prereq...
分类:
其他好文 时间:
2014-05-12 09:56:08
阅读次数:
327
最近写了几篇博客,被几个网站直接copy了,然后署上了他们的名,甚是愤怒!特此声明:
1、笔者的文章中若是转载,或原创中引用他人之处,必会自觉贴上其链接或其他有效标识,保护原创作者利益。 2、笔者对原创博客享有著作权和最终解释权。
3、本人不才,写不出惊天动地的文章,但是十分欢迎转载,也欢迎讨...
分类:
其他好文 时间:
2014-05-12 08:44:28
阅读次数:
380
一个android apk的编译过程
请参考:http://www.2cto.com/kf/201312/261475.html典型的编译过程:aapt( Android Asset
Packaging Tool): 把你的应用程序资源文件(例如: AndroidManifest.xml file ...
分类:
移动开发 时间:
2014-05-12 08:21:55
阅读次数:
962
一、file was built for archive which is not the
architecture being linked (armv7s)
项目是基于cocos2d-x绑定lua进行开发的,需要引用liblua.a静态库,编译的时候报上面的错。需要将liblua项目中的buil...
分类:
其他好文 时间:
2014-05-12 08:16:45
阅读次数:
345
#include
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-12 06:30:08
阅读次数:
232
1、len(mapping) 返回映射的长度(键-值对的个数)
2、hash(obj) 返回obj的哈希值
>>> myDict = {'name':'earth', 'port':'80'}
>>> len(myDict)
2
>>> hash('name')
15034981
3、dict.copy...
分类:
编程语言 时间:
2014-05-11 14:40:22
阅读次数:
327
/* *******************************************
***** File Name: Love.c
***** Description: Love Story about you and me
***** Author: JPing.Cai
***** Date: 2014-5-10
***** Last Version: 1.0
* *******...
分类:
其他好文 时间:
2014-05-11 14:15:46
阅读次数:
290
一、序言
一个简单的string 容器到底是如何实现的?
本文给出了 String 的三种从易到难的实现,涉及了 reference counting, copy on write 的技术。
二、第一个实现
我们设计的string类里面包含一个char* 的指针, 通过指针的管理,来实现string的基本功能。
废话不多说了,直接上代码:
{CSDN:CODE:...
分类:
其他好文 时间:
2014-05-11 06:58:16
阅读次数:
311
创建一个新项目是很简单的,只要你安装了Eclipse插件,并且你的Eclipse软件版本在3.2或3.3,你就可以开始开发了。首先, 看一下要创建"Hello,
World"程序从高级层面上有哪些步骤:1, 通过 File -> New -> Project 菜单,建立新项目"Android ...
分类:
移动开发 时间:
2014-05-11 00:06:13
阅读次数:
400