C++
--纯技术领域--
爱好计算机,电子
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【摘】初学C++异常处理 boost::bad_lexical_cast
// 代码片段 // test.cpp // 编译方法: g++ -o test test.cpp #include #include int main() { try { int a = boost::lexical_cast("123.456"); std::cout << a <<std::endl; return 0; } catch(boost:转载 2013-09-15 11:58:21 · 1807 阅读 · 0 评论 -
【转】【环境搭建】Ubuntu安装Boost
boost版本为: boost_1_52_0 ubuntu版本为:ubuntu-12.04.1-desktop-i386 这里有两种安装方法: ============= 第一种: 也是最简单的:进入linux系统后,输入 # apt-cache search boost 你将看到很多文件信息,你会看到其中一个文件叫 libboost-dev, 直接安装转载 2013-09-10 20:28:47 · 869 阅读 · 0 评论
分享