码迷,mamicode.com
首页 > 其他好文 > 详细

boost Array Example

时间:2017-03-22 00:23:51      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:space   cout   array   i++   str   for   name   turn   example   

 1 #include <iostream>
 2 #include "boost/multi_array.hpp"
 3 
 4 using namespace std;
 5 
 6 int main() {
 7     boost::array<int, 4> array = {{1,2,3,4}};
 8     for (int i = 0; i<4; i++)
 9         cout <<array[i] <<" ";
10 
11     cout <<endl;    
12 
13     return 0;
14 }

./Boost_Array_Example
1 2 3 4

boost Array Example

标签:space   cout   array   i++   str   for   name   turn   example   

原文地址:http://www.cnblogs.com/ILoveOCT/p/6597285.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!