1. Can you be more precise than "doesn't work" because that doesn't mean anything to me. You're lucky that I know the answer though. You need to do something like this:
Code:
std::vector<char**> HAND;
while(!b_file.eof() )
{
char** tmp = new char*[13];
for(int i = 0; i < 13; i++)
tmp[i] = new char[2];
HAND.push_back(tmp);
}
Of course, you need to delete all those arrays somewhere in your application as well.
Code:
std::vector< std::vector< std::string > > HAND;
while (!b_file.eof())
{
HAND.push_back(std::vector< std::string > ( ));
// HAND.back().push_back("foo")
}
Added that comment bit so you can see how to add a string but you don't need to initialize memory or whatever. =)