I want to access the string in the first entry in the vector inside the first entry in another vector. My code:
typedef std::vector<std::string> DatabaseRow;
std::vector<DatabaseRow*> data;
//getting data from database
//(dont need this for this example)
//then print first entry out
printf("%s.\n",dbresult.data[0][0].c_str());
But then I get error:
error: ‘class std::vector, std::allocator >, std::allocator, std::allocator > > >’ has no member named ‘c_str’
Any insight please?