Boost MultiArray is a library that simplifies using arrays with multiple dimensions.
1.
#include <boost/multi_array.hpp> #include <iostream> int main() { boost::multi_array<char, 1> a(boost::extends[6]); a[0] = 'B'; a[1] = 'o'; a[2] = 'o'; a[3] = 's'; a[4] = 't'; a[5] = '