>Is anything like that possible, or am I gonna have to do it the hard way?
You'll probably have to do it the hard way unless you want to use Boost to initialize the vector or one of the standard constructors does what you want. For example:
Code:
#include <cstddef>
#include <iostream>
#include <string>
#include <vector>
int main()
{
std::string init[] = {
"This","is","a","test"
};
std::vector<std::string> array[] = {
std::vector<std::string> ( 5, "test" ),
std::vector<std::string> ( init, init + 4 )
};
for ( int i = 0; i < 2; i++ ) {
for ( std::size_t j = 0; j < array[i].size(); j++ )
std::cout<< array[i][j] <<' ';
std::cout<<'\n';
}
}
[edit]
Oh. my. god. Does this board really use a tab size of 8?
[/edit]