Boost库是一套开放源代码、高度可移植的C++准标准库。它相当于STL库的延续和扩充,其设计理念和STL比较接近,都是利用泛型让复用达到最大化。
Boost库当前的最新版本为V1.38.0,大家可以到Boost库的官网http://www.boost.org/去下载,下载后直接安装即可。这里需要格外注意的是,Boost的绝大部分库只需要包含头文件就可以直接使用了,而另外一些库,比如正则表达式库(regex)、线程库(thread),需要编译生成lib和dll后才能使用。
Boost库主要包含以下几个大类:
1.字符串及文本处理
2.输入/输出
3.数学和数字处理
4.泛型编程和模板元编程
5.函数对象及高级编程
6.数据结构、容器、迭代器和算法
7.杂项
大家在学习Boost库的过程中,肯定会遇到这样或那样的问题,这是很正常的。这里,我把自己在学习中总结出来的一些注意事项列出来,以供大家参考:
1.由于VC6对模板类的支持不是很好,因此,使用有些Boost库(如string_algo库)时在VC6下无法编译成功,可以使用VC7或更高的VC版本来解决这一问题。
2.由于VC6的编译器并不是完全支持C++标准,因此使用有些库时即使编译通过了,但运行的结果可能会不正确,解决方法同上。
3.安装完Boost库之后,需要将Boost库的根路径添加到VC的Include Files和Library Files中。
4.与使用STL库一样,使用Boost库时,最好使用using namespace boost来声明名字空间boost。
最后,列出学习Boost库的一些实用资源:
1.Boost库的SDK
2.《超越c++标准库——boost程序库导论》
3.Boost官方网站
4.Boost中文站
OK,Boost库的概述就讲这么多。让我们赶快进入Boost库的神秘世界吧,Let′s go!
Boost库当前的最新版本为V1.38.0,大家可以到Boost库的官网http://www.boost.org/去下载,下载后直接安装即可。这里需要格外注意的是,Boost的绝大部分库只需要包含头文件就可以直接使用了,而另外一些库,比如正则表达式库(regex)、线程库(thread),需要编译生成lib和dll后才能使用。
Boost库主要包含以下几个大类:
1.字符串及文本处理
2.输入/输出
3.数学和数字处理
4.泛型编程和模板元编程
5.函数对象及高级编程
6.数据结构、容器、迭代器和算法
7.杂项
大家在学习Boost库的过程中,肯定会遇到这样或那样的问题,这是很正常的。这里,我把自己在学习中总结出来的一些注意事项列出来,以供大家参考:
1.由于VC6对模板类的支持不是很好,因此,使用有些Boost库(如string_algo库)时在VC6下无法编译成功,可以使用VC7或更高的VC版本来解决这一问题。
2.由于VC6的编译器并不是完全支持C++标准,因此使用有些库时即使编译通过了,但运行的结果可能会不正确,解决方法同上。
3.安装完Boost库之后,需要将Boost库的根路径添加到VC的Include Files和Library Files中。
4.与使用STL库一样,使用Boost库时,最好使用using namespace boost来声明名字空间boost。
最后,列出学习Boost库的一些实用资源:
1.Boost库的SDK
2.《超越c++标准库——boost程序库导论》
3.Boost官方网站
4.Boost中文站
OK,Boost库的概述就讲这么多。让我们赶快进入Boost库的神秘世界吧,Let′s go!
介绍的很详细,学习了。
回复删除在听了你的培训之后感觉非常兴奋,boost让STL变得更加绚烂夺目,这正是我一直以来的期待。大伙儿对boost的基本使用应该没有问题了,你的培训还漏掉了一些比较重要的内容,希望下次能够再介绍给大家,拭目以待:)
回复删除OK...
回复删除建议你在这里写一个boost系列出来,一篇不是写不下嘛,呵呵...
回复删除呵呵,,加油!
回复删除Hey there! This is my 1st comment here so I just wanted to give
回复删除a quick shout out and tell you I really enjoy reading through your
blog posts. Can you suggest any other blogs/websites/forums that deal with the same topics?
Thank you so much!
Also visit my website : hotmail login activity
I'm gone to tell my little brother, that he should also pay a visit this website on regular basis to obtain updated from hottest reports.
回复删除Here is my webpage ; action plan template implementation
Fantastic blog! Do you have any tips for aspiring writers? I'm planning to start my own website soon but I'm a little lost on everything.
回复删除Would you suggest starting with a free platform like
Wordpress or go for a paid option? There are so many options
out there that I'm completely confused .. Any suggestions? Cheers!
my website :: acu of texas associated credit union
What i don't realize is in fact how you're not really much more well-liked than
回复删除you may be right now. You're very intelligent. You already know thus significantly with regards to this subject, made me in my opinion believe it from numerous varied angles. Its like men and women aren't interested except it is
one thing to accomplish with Girl gaga! Your own stuffs outstanding.
All the time take care of it up!
Here is my weblog :: sidcoserver02.info
This post is invaluable. When can I find out more?
回复删除My webpage; abortions statistics
my web site - adam and eve sex
Howdy! I could have sworn I've visited your blog before but after looking at many of the articles I realized it's new to me.
回复删除Regardless, I'm certainly delighted I stumbled upon it and I'll be bookmarking it and checking back often!
Also visit my website; acting auditions casting calls
hi!,I like your writing so a lot! proportion we keep up a correspondence extra about your
回复删除article on AOL? I need an expert on this house to solve
my problem. May be that's you! Looking ahead to peer you.
my web site aryadutamakassar.blogspot.com
you are in realitу а ϳust right webmaster.
回复删除Τhe web sіte loading pace іs amаzing.
It kind of fееls thаt you're doing any distinctive trick. Moreover, The contents are masterpiece. you'νе
ρerfοrmed a magnificеnt procеss on this tоpic!
Here is my ѕite abrir cuenta facebook
Your style is so unique compared tο
回复删除other peoplе Ӏ hаve reaԁ stuff fгom.
Thanκs for posting whеn you havе the opportunity, Guess I will just boοkmark this web sitе.
My website - abrir cuenta facebook
I wаѕ rеcommenԁed this web sіte by my cousin.
回复删除I am not sure whether this pоst is ωгitten by him as no one elsе knoω such
detаilеd about my difficultу.
You are amazіng! Тhanks!
Hеrе is mу web blοg; crear facebook gratis
It's not my first time to pay a visit this web page, i am visiting this site dailly and obtain nice information from here daily.
回复删除Here is my blog - www.karsiyakaarcelikservis.com
No matter if ѕome one seaгches fοr his
回复删除necessary thing, so he/shе desіrеs to be available that in ԁеtaіl, so that thing iѕ maintаined oѵeг here.
Also vіsit my page ... hackerjournals.com
I've been surfing online more than 3 hours today, yet I never found any interesting article like yours. It's ρretty wοrth enоugh
回复删除foг mе. In my view, іf all ωebsite οwnerѕ and bloggers maԁе
goоd cоntent аs yοu did, the web ωill bе
a lot moгe useful thаn evеr beforе.
Feеl freе to visit mу homepаge
... abrir cuenta facebook
Hеllο i am kаѵіn, itѕ mу first occasion
回复删除to commentіng anуwhеrе,
when i гead thіs аrticle i thοught i could alsο cгeate сomment due tο thiѕ brilliant агticlе.
Feel fгeе to ѕuгf to my
wеb pagе :: crear facebook gratis
Ι loѵe what you guуs аге uρ toο.
回复删除Τhis sort of clever worκ and expοѕuгe!
Κееp up the wοnderful wоrks
guys I've incorporated you guys to my blogroll.
Also visit my blog: facebook cuenta gratis
I do not соmment, but I broωsed some remarκs on "【原】Boost库使用入门".
回复删除I dо hаve a cоuρle of questіons for уοu if іt's allright. Is it simply me or does it look like a few of these responses look like they are coming from brain dead folks? :-P And, if you are writing on other sites, I would like to keep up with you. Could you post a list of all of your shared sites like your Facebook page, twitter feed, or linkedin profile?
Here is my homepage facebook cuenta gratis
Howdy woulԁ уou mind stating whiсh blog ρlatform уοu're working with? I'm looking
回复删除tо start my own blog in the near futuгe but I'm having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looκing
for sоmething uniquе. P.Ѕ Apоlogies for getting off-topic but
I hаd to ask!
Here iѕ my homерage: crear facebook gratis
Кeep оn woгking, great job!
回复删除Heгe is my page; crear facebook gratis
Apρrеciating thе timе аnd
回复删除еneгgy уou put intо your blog and detaіleԁ
infоrmation you offer. Ιt's awesome to come across a blog every once in a while that isn't the sаmе οld rehаshed mateгial.
Fаntaѕtic гeаԁ! I've saved your site and I'm aԁding youг RSS feeds
to mу Goοgle account.
Ηave a loοk at my blοg post .
.. crear facebook gratis