请大家谈谈对《程序员》第6期《大话迭代器:实践与应用》一文的意见

babysloth 2002-06-05 05:43:13
主要内容是:
标准字符串类basic_string
正则表达式
标准容器
IOStream库
封装API

看过《程序员》第6期的朋友,如果有兴趣,欢迎您提出批评意见。有任何没写清楚的问题,也欢迎您写在下面,谢谢。

ps 感谢《程序员》允许,一个月后(7月)能在网上贴出文章内容。
...全文
45 29 打赏 收藏 转发到动态 举报
写回复
用AI写文章
29 条回复
切换为时间正序
请发表友善的回复…
发表回复
babysloth 2002-06-13
  • 打赏
  • 举报
回复
没什么晚上就结帖了。谢谢。
babysloth 2002-06-13
  • 打赏
  • 举报
回复
谢谢大家的意见,准备结帖。
huxw 2002-06-11
  • 打赏
  • 举报
回复
有两个问题。

boost::regex为什么要做成lib?有必要吗?

posix和perl的正则表达式格式(可能还要算上gnu的和bsd的)不同,但是我不认为会因此造成性能上的差异。比如glibc的正则实现。
babysloth 2002-06-11
  • 打赏
  • 举报
回复
huxw()老哥好
做成lib主要是编译方便。其实大不了直接把.cpp放进工程去也可以。
毕加索的画 2002-06-10
  • 打赏
  • 举报
回复
c++ view中的文章哪能放过,stl 、boost越多越好,还有吗?
英文不好,E文site 90%++看不懂:(
alang_xy 2002-06-10
  • 打赏
  • 举报
回复
用意不错,但限于偏复所限没有太展开。遗憾,希望能在其它地方多看到你的文章。

不过看到了一些新东西,如boost库的东西。
babysloth 2002-06-10
  • 打赏
  • 举报
回复
2 Viper()
C++ and STL: Take Advantage of STL Algorithms by Implementing a Custom Iterator一文(http://msdn.microsoft.com/msdnmag/issues/01/04/STL/STL.asp,作者Samir Baja)

2 SnowFalcon(恶魔吹着笛子来)
谢谢你了。其实我想,既然都是开源的东西,总可以互相借鉴,速度终究不会是问题的:-)

2 alang_xy(浪人)
谢谢。
SnowFalcon 2002-06-10
  • 打赏
  • 举报
回复
对了babysloth上次我问过boost::regex 的作者John Maddock的两个问题
一个是关于jam lib和mak lib的区别的问题。另外一个是否,关于boost::regex和GREAT LIB之间的性能差别。下面是他的回答

> I encoming some problems of boost::regex.Would u mind help me to >solvethem?my enviroment is windows98+visualc++(no service packe)>+stlport4.5.3 1.what 's the difference of the libs compiled by jam >and libs compile bymak file.when I compile the test file >distrubted from boost site,thecompiler always need >boost_regex_vc6_mdid.lib compiled by mak file >notlibboost_regex.lib by jam.

They use different naming conventions at the moment: the prefered way to build regex with vc6+stlport is with the makefiles as that will sort out the linking automatically. If you would rather use jam, then you need to define BOOST_REGEX_NO_LIB when linking (as well as manually adding the right lib file to the project).

> 3.I heard about that the performance of boost::regex lib is lower >than perl .And a microsoft researcher distribute a c++ regex lib >as fast as perl.Is that really?Will u improve the performance of >boost::regex in the futuer?
> Thanks a lot.I'd like look forward ur guidiance.

It's hard to say, and it depends on what you want to do. The GRETA lib is supposed to be faster at the expense of some stack-safety. Boost-regex uses POSIX matching rules, and GRETA uses Perl rules, so they're not quite doing the same thing anyway.
John Maddock

招RD和QA 2002-06-10
  • 打赏
  • 举报
回复
封装API是MSDN中的哪篇?
maoxianwang 2002-06-07
  • 打赏
  • 举报
回复
我现在只有第五期,明天米本回来LOOK一下
Kklee 2002-06-07
  • 打赏
  • 举报
回复
有深度
babysloth 2002-06-07
  • 打赏
  • 举报
回复
唉,在某位著名编辑手里,被杀了一大遍啊:-(
babysloth 2002-06-07
  • 打赏
  • 举报
回复
唉,在某位著名编辑手里,被杀了一大遍啊:-(
babysloth 2002-06-07
  • 打赏
  • 举报
回复
好象发现问题了,把wstring称作“宽字符串”似乎更为合适,而不是所谓“双字节字符串”。同样,wchar_t叫作“宽字符”才对。脸红,脸红……
loveisbug 2002-06-07
  • 打赏
  • 举报
回复
看看再说。
duanfeng 2002-06-07
  • 打赏
  • 举报
回复
写得不错,
只是内容多一些就更好了
babysloth 2002-06-07
  • 打赏
  • 举报
回复
谢谢!如果《程序员》读者调查反应好,就可以继续,要么就没戏了^_^
boost已经翻译的文档在http:///boost.c-view.org
毕加索的画 2002-06-07
  • 打赏
  • 举报
回复
非常好的文章,第6期就这么一篇吸引人,能继续当然好;
boost的中文资料很少,来点吧!
lattice 2002-06-07
  • 打赏
  • 举报
回复
()000o
( )
) /
(__/
()000o
( )
) /
(__/
()000o
( )
) /
(__/
第六期的唯一看点,哈哈
jerry921 2002-06-06
  • 打赏
  • 举报
回复
我也是啊,前天去卖还没有呢。只有过两天了。
加载更多回复(9)

69,370

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧