摘要: 0. 1. Array Its size is fixed; The size must be known at compile-time; 2. Examples const unsigned buf_size = 512; int ia[buf_size]; // an empty array, 阅读全文
posted @ 2020-02-11 08:13 心怀阳光 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 0. 1. Standard library header <algorithm> #include <algorithm> // for sort std::array<int,10> s = {5,7,2,8,6,1,9,0,3}; // initial an array std::sort(s 阅读全文
posted @ 2020-02-11 07:33 心怀阳光 阅读(192) 评论(0) 推荐(0) 编辑