$ gcc -shared -Wl,-soname,testlib -o testlib.so -fPIC testlib.c如果在Mac OS X ,则$ gcc -shared -Wl,-install_name,testlib.so -o testlib.so -fPIC testlib.ci...
分类:
编程语言 时间:
2014-12-29 18:14:54
阅读次数:
157
1.安装apache:yuminstall-yhttpdhttpd-devel修改/etc/httpd/conf/httpd.conf中的servername等配置,使http://*:*/能正常访问2.安装python:wgethttps://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgztar-xzvfPython-2.7.8.tgzcdPython-2.7.8./configure--enable-shared=e..
分类:
编程语言 时间:
2014-12-29 06:40:05
阅读次数:
180
http://poj.org/problem?id=3274
Description
Farmer John's N cows (1 ≤ N ≤ 100,000) share many similarities. In fact, FJ has been able to narrow down the list of features shared by his cows to a l...
分类:
其他好文 时间:
2014-12-28 22:18:33
阅读次数:
154
由于shared pool中最重要的是library cache,所以本文主要讲解Library cache的结构,library cache latch,library cache lock,library cache pin。
What is shared pool?
Shared pool是SGA中的一部分,由于它是SGA的一部分,这意味着它可以被所有的进程所访问,Share...
分类:
其他好文 时间:
2014-12-28 20:54:23
阅读次数:
188
除了SQLite数据库外,SharedPreferences也是一种轻型的数据存储方式,它的本质是基于XML文件存储key-value键值对数据,通常用来存储一些简单的配置信息。其存储位置在/data/data//shared_prefs目录下。SharedPreferences对象本身只能获取数据...
分类:
移动开发 时间:
2014-12-28 19:25:55
阅读次数:
165
4 来自Google的奇技 Google-Specific Magic
Google用了很多自己的实现技巧/工具使 C++代码更加健壮, 我们使用C++的方式可能和你在其他地方见到的有所不同;
[Removed]
4.1 智能指针
Tip 如果确实需要使用智能指针的话, scoped_ptr完全可以胜任; 你应该只在非常特定的情况下使用 std::tr1::shared...
分类:
其他好文 时间:
2014-12-28 00:33:50
阅读次数:
218
现在已经实现地图和蘑菇的,或者说游戏界面的不换页刷新,
这里需要使用libncurses.a库来实现,代码如下。
下一步:实现蛇的移动。
源代码:
root@ubuntu:/mnt/shared/appbox/snake# cat snake.c
#include
#include
#include
#include
#include
#include
#include...
分类:
编程语言 时间:
2014-12-27 10:12:24
阅读次数:
195
1.创建graphics.c
2. 编辑graphics.c,编译:
gcc -o graphic graphic.c -L/usr/lib/i386-linux-gnu/ -lncurses
3.graphics.c的源码如下:
root@ubuntu:/mnt/shared/appbox/graphic# cat graphic.c
#include
#include
#inc...
分类:
其他好文 时间:
2014-12-27 06:45:18
阅读次数:
223
关键字 赖世雄、标准发音 http://www.400gb.com/shared/folder_2246807_56717bc3/ http://yun.baidu.com/share/home?uk=1913128246&view=share#category/type=0 李阳,李阳疯狂英语口语...
分类:
其他好文 时间:
2014-12-26 18:14:00
阅读次数:
172
目前只是画地图,和根据当前时间随机生成蘑菇
下一步:
(1)实现类似于top的刷新方法
(2)实现蛇的行走
(3)实现蛇吃蘑菇的合并及新蘑菇的生成
root@ubuntu:/mnt/shared/appbox/snake# cat snake.c
#include
#include
#include
#include
#include
#define GAME_WIDTH...
分类:
编程语言 时间:
2014-12-25 23:41:06
阅读次数:
625