摘要: 排序:std::list用其自身的sort方法std::map用插入排序 1 // stl_test.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include <Windows.h> 6 #include <list> 7 #include <string> 8 #include <map> 9 10 struct _NpcDis11 {12 DWORD dwNpcId;13 INT nD 阅读全文
posted @ 2011-09-23 16:51 ybtyoyo 阅读(1417) 评论(0) 推荐(0) 编辑
摘要: memcached有很多版本的Client,具体可参照:http://code.google.com/p/memcached/wiki/Clients本次只讨论libmemcached这个client的安装及使用官网:http://libmemcached.org/libMemcached.htmllibMemcached was designed to provide the greatest number of options to use Memcached. Some of the features provided:Asynchronous and Synchronous Trans 阅读全文
posted @ 2011-09-23 16:21 ybtyoyo 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Memcached是什么?存在意义?(提供缓存,提高系统性能)http://blog.developers.api.sina.com.cn/?p=124linux上安装Memcached:Memcached官网:http://memcached.org/本次安装基于1.4.7稳定版本http://memcached.googlecode.com/files/memcached-1.4.7.tar.gz另外,Memcached用到了libevent来做socket处理。libevent官网:http://www.monkey.org/~provos/libevent/本次安装基于libevent 阅读全文
posted @ 2011-09-23 16:03 ybtyoyo 阅读(218) 评论(0) 推荐(0) 编辑