返回   cpper编程论坛 > 技术杂烩
注册账号 论坛帮助 会员列表 日历事件 搜索 今日新帖 标记版面已读

技术杂烩 找不到地方的技术问题?这里!

回复
 
LinkBack 主题工具 显示模式
  #21 (permalink)  
旧 2002-09-21
Elminster 的头像
超级版主
 
注册日期: 2002-09-09
帖子: 1,764
Elminster 正向着好的方向发展
默认

是呀,变成“神秘的机制”了,确实也不好。
所以说,虽然 BS 痛恨预编译器,但它至今仍然活的相当滋润 ……
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #22 (permalink)  
旧 2002-09-21
abp 的头像
abp abp 当前离线
高级会员
 
注册日期: 2002-08-30
帖子: 811
abp 正向着好的方向发展
默认

的确,我还看到过有人用C的宏写了一套类定义,写得非常不错了。还有用宏实现容器类和继承的。还是很有用的,不过我现在已经尽量不用了。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #23 (permalink)  
旧 2002-10-09
初级会员
 
注册日期: 2002-09-22
帖子: 21
vtbl 正向着好的方向发展
默认

i think using c++ to implement this function is better,
anybody think of it?
maybe derive a class from streambuf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #24 (permalink)  
旧 2002-10-09
polyrandom 的头像
超级版主
 
注册日期: 2002-09-03
帖子: 3,138
文章: 20
polyrandom 正向着好的方向发展
默认

no, to derive a class from streambug is definitely not a good choice here.

However, to contain a ostream reference inside your dump class might be a good idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #25 (permalink)  
旧 2002-10-10
lonelywhisper 的头像
高级会员
 
注册日期: 2002-09-25
帖子: 111
lonelywhisper 正向着好的方向发展
发送 MSN 消息给 lonelywhisper
默认

调试信息的输出指的是什么?错误发生的所在文件和行数?还是什么别的?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #26 (permalink)  
旧 2002-10-10
abp 的头像
abp abp 当前离线
高级会员
 
注册日期: 2002-08-30
帖子: 811
abp 正向着好的方向发展
默认

就是输出,错误的行数和文件名也是其中之一,但是不仅仅包括这些。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #27 (permalink)  
旧 2002-10-10
lonelywhisper 的头像
高级会员
 
注册日期: 2002-09-25
帖子: 111
lonelywhisper 正向着好的方向发展
发送 MSN 消息给 lonelywhisper
默认

哦,要是从头开始,在不使用预定义宏的情况下怎么得到行号呢?思路是什么?有库函数调用?这没做过,不知道什么书里有讲?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #28 (permalink)  
旧 2002-10-11
普通会员
 
注册日期: 2002-10-09
帖子: 30
yameng 正向着好的方向发展
发送 MSN 消息给 yameng 发送 Yahoo! 消息给 yameng
默认

我有一整套的,都是我自己写的。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #29 (permalink)  
旧 2002-10-11
高级会员
 
注册日期: 2002-09-16
帖子: 1,087
文章: 1
SpitFire 正向着好的方向发展
默认

总管小姐,把代码贴出看看吧,看看能不能抓到虫子
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #30 (permalink)  
旧 2002-10-11
普通会员
 
注册日期: 2002-10-09
帖子: 30
yameng 正向着好的方向发展
发送 MSN 消息给 yameng 发送 Yahoo! 消息给 yameng
默认

太大了,因为我不仅输出调试信息,而且还输出内存分配和释放的信息。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #31 (permalink)  
旧 2002-10-11
高级会员
 
注册日期: 2002-09-16
帖子: 1,087
文章: 1
SpitFire 正向着好的方向发展
默认

哦,那把你思想说说,怎么实现的,也让大家看看啦
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #32 (permalink)  
旧 2002-10-11
lonelywhisper 的头像
高级会员
 
注册日期: 2002-09-25
帖子: 111
lonelywhisper 正向着好的方向发展
发送 MSN 消息给 lonelywhisper
默认

告诉我们框架即可,source code不用贴了,免得我们偷懒。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #33 (permalink)  
旧 2002-10-11
普通会员
 
注册日期: 2002-10-09
帖子: 30
yameng 正向着好的方向发展
发送 MSN 消息给 yameng 发送 Yahoo! 消息给 yameng
默认

好的,等我再看一下吧,写了有很长一段时间了。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
回复

书签

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
Trackbacks are 启用
Pingbacks are 启用
Refbacks are 启用



所有时间均为格林尼治时间 +9。现在的时间是 03:21 AM


Powered by vBulletin® 版本 3.7.0
版权所有 ©2000 - 2009,Jelsoft Enterprises Ltd.
(C) Copy Right All Right Reserved 2001 - 2007

Search Engine Friendly URLs by vBSEO 3.1.0