C++日志程序库 RLog
- 授权协议: LGPL
- 开发语言: C/C++
- 操作系统: Windows
- 软件首页: http://code.google.com/p/rlog/
- 软件文档: http://www.arg0.net/rlog
软件介绍
RLog是一个灵活的C++日志程序库。RLog高度优化了不用实际输出Log信息的分支,因此RLog可以留在发布产品中,并可以按需开启输出。
示例代码:
// create custom logging channel (part of debug hierarchy)
// Any subscriber to 'debug' will also pick up this sub channel,
// or it can be subscribed to directly.
static RLogChannel *timeChannel = DEF_CHANNEL("debug/timeStamp", Log_Debug);
void func(int foo)
{
// log to the 'debug' channel
rDebug("foo = %i", foo);
int ans = 6 * 9;
if(ans != 42)
rWarning("ans = %i, expecting 42", ans); // log to warning channel
// log to error channel
rError("I'm sorry %s, I can't do that (error code %i)", name, errno);
// log to custom channel
// Note: time() never gets called unless there are subscribers to this message
rLog(timeChannel, "the time is now %i", (int)time(NULL));
}
算法详解(卷1)——算法基础
[美]蒂姆·拉夫加登(Tim Roughgarden) / 徐波 / 人民邮电出版社 / 2019-1-1 / 49
算法是计算机科学领域最重要的基石之一。算法是程序的灵魂,只有掌握了算法,才能轻松地驾驭程序开发。 算法详解系列图书共有4卷,本书是第1卷——算法基础。本书共有6章,主要介绍了4个主题,它们分别是渐进性分析和大O表示法、分治算法和主方法、随机化算法以及排序和选择。附录A和附录B简单介绍了数据归纳法和离散概率的相关知识。本书的每一章均有小测验、章末习题和编程题,这为读者的自我检查以及进一步学习提......一起来看看 《算法详解(卷1)——算法基础》 这本书的介绍吧!
