说明问题的例子最好越短越好 如下: /* ccsdu2004@yahoo.com.cn www.gaimo.net 02.15.2009 */ //dev c++ //boost多位数组 #include <cstdlib> #include <iostream> #include <boost/multi_array.hpp> using namespace std; using namespace boost; const int dim = 3; typedef boost::multi_array<int,dim> multi_array_type; int main(int argc, char *argv[]) { multi_array_type data(extents[3][4][5]); cout<<data[1][2][3]<<endl; system("PAUSE"); return EXIT_SUCCESS; }