Boost的array,元素可以是std::string
#include <iostream>
#include <string>
#include <boost/array.hpp> void main()
{
boost::array<int, >barray = { ,,,, }; barray[] = ; barray.at() = ; int *p = barray.data();//存储数组的指针 for (int i = ; i < barray.size(); i++)
{
std::cout << barray[i] << " " << p[i] << std::endl;
} boost::array<std::string, >cmd = { "calc","notepad","tasklist" };
}