首页 > 其他 > 详细

#include <boost/array.hpp>

时间:2016-08-13 06:32:26      阅读:209      评论:0      收藏:0      [点我收藏+]

 

Boost的array

 

 1 #include <iostream>
 2 #include <boost/array.hpp>
 3 
 4 void main()
 5 {
 6     boost::array<int, 10>myarray = { 1,2,3,4,5,6,7,8,9,10 };
 7 
 8     boost::array<int, 10>::iterator ibegin = myarray.begin();
 9     boost::array<int, 10>::iterator iend = myarray.end();
10 
11     for (; ibegin != iend; ibegin++)
12     {
13         std::cout << *ibegin << std::endl;
14     }
15 }

 

#include <boost/array.hpp>

原文:http://www.cnblogs.com/denggelin/p/5767055.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!