摘要: 需要动态分配大小的得自己把转化封装一下,MinGW5下跑过.test.c#include <windows.h>#include <stdlib.h>#include <stdio.h>#include <locale.h>void print_hex(const UCHAR *buf, int len){ int i; for (i = 0; i < len; i++) { printf("0x%02x ", *(buf + i)); if (!((i + 1) % 4)) printf("\t") 阅读全文
posted @ 2013-01-18 11:58 Leo Forest 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 传送门:POCO Fanatic:http://poco.roundsquare.net/Demo地址:http://poco.roundsquare.net/2010/04/19/pocologger/ScopedLogMessage.h//// Copied from http://poco.roundsquare.net/2010/04/19/pocologger///#include <string>#include <memory>class ScopedLogMessage{public: ScopedLogMessage( const std::strin 阅读全文
posted @ 2013-01-18 10:05 Leo Forest 阅读(1685) 评论(0) 推荐(0) 编辑