摘要: 其题目如下:#pragma pack(2)class A{public: int i; union U { char buff[13]; int i; }u; void foo() { } typedef char* (*f)(void*); enum{red, green, blue} ... 阅读全文
posted @ 2014-05-11 19:21 幻影gool 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 自己写的一段://goolchar* str_replace(char* source, const char* find, const char* replace){ if (source == NULL || find == NULL || find == "") return strdup... 阅读全文
posted @ 2014-05-11 05:07 幻影gool 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 简单的一个curl小例子:#include #include #include #include #include #define BUF_SIZE 1024 * 100using namespace std;string DownloadString(char* url);int main(int... 阅读全文
posted @ 2014-05-11 02:27 幻影gool 阅读(846) 评论(0) 推荐(0) 编辑
摘要: CURL邮件列表中提到官方最新版本的windows devel包中缺少文件,而我又用不到https,所以我就自己下载源码包来编译了 下载源码包:http://curl.haxx.se/download/curl-7.36.0.tar.gz 解压包: tar -zxvfcurl-7.36.0... 阅读全文
posted @ 2014-05-11 02:21 幻影gool 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 最近用到gzip关的算法,于是想起了zlib这个库,于是将其下载下来编译。 首先,在官网上下载源码包:http://zlib.net/zlib-1.2.8.tar.gz 解压之后,打开vc 命令工具:%comspec% /k ""C:\Program Files (x86)\Microsof... 阅读全文
posted @ 2014-05-11 01:57 幻影gool 阅读(458) 评论(0) 推荐(0) 编辑